OSDN Git Service

(yylex): Integer constant is unsigned for purposes of
authorrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Sep 1992 21:37:46 +0000 (21:37 +0000)
committerrms <rms@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 15 Sep 1992 21:37:46 +0000 (21:37 +0000)
int_fits_type_p so that it compares huge constants properly.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@2127 138bc75d-0d04-0410-961f-82ee72b054a4

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.