summaryrefslogtreecommitdiff
path: root/gnu/egcs/gcc/c-lex.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/egcs/gcc/c-lex.c')
-rw-r--r--gnu/egcs/gcc/c-lex.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/egcs/gcc/c-lex.c b/gnu/egcs/gcc/c-lex.c
index 27c65f3fa27..b8bb7e0a4db 100644
--- a/gnu/egcs/gcc/c-lex.c
+++ b/gnu/egcs/gcc/c-lex.c
@@ -1481,7 +1481,9 @@ yylex ()
|| (ISALNUM (c) && c != 'l' && c != 'L'
&& c != 'u' && c != 'U'
&& c != 'i' && c != 'I' && c != 'j' && c != 'J'
- && (floatflag == NOT_FLOAT || ((c != 'f') && (c != 'F')))))
+ && (floatflag == NOT_FLOAT
+ || ((base != 16) && (c != 'f') && (c != 'F'))
+ || base == 16)))
{
if (c == '.')
{