Commit c832a30e by Richard Stallman

(yylex): Warn about integers so large that they are unsigned.

From-SVN: r2120
parent 57caa638
......@@ -1585,6 +1585,9 @@ yylex ()
&& !warn)
pedwarn ("integer constant out of range");
if (base == 10 && ! spec_unsigned && TREE_UNSIGNED (type))
warning ("integer constant is so large that it is unsigned");
if (flag_traditional && !int_fits_type_p (yylval.ttype, type))
/* The traditional constant 0x80000000 is signed
but doesn't fit in the range of int.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment