mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-19 07:20:50 +00:00
[util] Correct the lex priority for int constants
The actual need to specify unsigned int constant is a bit of a pain, but not being able to do so due to lex priority errors is even more of a pain.
This commit is contained in:
parent
a94949c009
commit
4bda49d798
1 changed files with 4 additions and 4 deletions
|
@ -120,13 +120,13 @@ STRING \"(\\.|[^"\\])*\"
|
|||
__auto_type context = yyget_extra (yyscanner);
|
||||
%}
|
||||
|
||||
{INT}+ {
|
||||
yylval->value = parse_int (yytext, context);
|
||||
{INT}+[uU] {
|
||||
yylval->value = parse_uint (yytext, context);
|
||||
return VALUE;
|
||||
}
|
||||
|
||||
{INT}+[uU] {
|
||||
yylval->value = parse_uint (yytext, context);
|
||||
{INT}+ {
|
||||
yylval->value = parse_int (yytext, context);
|
||||
return VALUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue