(yylex): Integer constant is unsigned for purposes of
authorRichard Stallman <rms@gnu.org>
Tue, 15 Sep 1992 21:37:46 +0000 (21:37 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 15 Sep 1992 21:37:46 +0000 (21:37 +0000)
int_fits_type_p so that it compares huge constants properly.

From-SVN: r2127

gcc/c-lex.c

index 0546150..e983773 100644 (file)
@@ -1512,6 +1512,7 @@ yylex ()
              }
            
            yylval.ttype = build_int_2 (low, high);
+           TREE_TYPE (yylval.ttype) = long_long_unsigned_type_node;
 
            /* If warn_traditional, calculate both the ANSI type and the
               traditional type, then see if they disagree.