aboutsummaryrefslogtreecommitdiff
blob: f6e9d5976d89af1fe519f766cb67d0b355c9104b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/gcc/cppexp.c	19 Dec 2002 05:18:04 -0000	1.136
+++ b/gcc/cppexp.c	13 Mar 2003 20:41:04 -0000
@@ -175,7 +175,8 @@ cpp_classify_number (pfile, token)
       str++;
 
       /* Require at least one hex digit to classify it as hex.  */
-      if ((*str == 'x' || *str == 'X') && ISXDIGIT (str[1]))
+      if ((*str == 'x' || *str == 'X')
+	  && (str[1] == '.' || ISXDIGIT (str[1])))
 	{
 	  radix = 16;
 	  str++;