aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Stallman <rms@gnu.org>1992-09-15 21:37:46 +0000
committerRichard Stallman <rms@gnu.org>1992-09-15 21:37:46 +0000
commit5a9085c7dc59f3118e0c9f44b3fe9e771fbde055 (patch)
tree4273a3886daccfb4863a77e132ea34757230d950 /gcc
parentdcffa15b6e524634316ad09aab3f20869ad05f6e (diff)
downloadgcc-5a9085c7dc59f3118e0c9f44b3fe9e771fbde055.zip
gcc-5a9085c7dc59f3118e0c9f44b3fe9e771fbde055.tar.gz
gcc-5a9085c7dc59f3118e0c9f44b3fe9e771fbde055.tar.bz2
(yylex): Integer constant is unsigned for purposes of
int_fits_type_p so that it compares huge constants properly. From-SVN: r2127
Diffstat (limited to 'gcc')
-rw-r--r--gcc/c-lex.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/c-lex.c b/gcc/c-lex.c
index 0546150..e983773 100644
--- a/gcc/c-lex.c
+++ b/gcc/c-lex.c
@@ -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.