Commit 5717cc73 by Richard Kenner

(parse_number): Don't reject long long constants unless pedantic.

From-SVN: r11689
parent f250a0bc
...@@ -520,9 +520,9 @@ parse_number (olen) ...@@ -520,9 +520,9 @@ parse_number (olen)
while (1) { while (1) {
if (c == 'l' || c == 'L') if (c == 'l' || c == 'L')
{ {
if (spec_long) if (!pedantic < spec_long)
yyerror ("two `l's in integer constant"); yyerror ("too many `l's in integer constant");
spec_long = 1; spec_long++;
} }
else if (c == 'u' || c == 'U') else if (c == 'u' || c == 'U')
{ {
......
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