Update src/App/ExpressionParser.l
Fixes issue in expression parser Co-authored-by: Chris Hennes <[email protected]>
This commit is contained in:
co-authored by
Chris Hennes
parent
8d228090de
commit
1dc34ffcd4
@@ -343,7 +343,7 @@ EXPO [eE][-+]?[0-9]+
|
||||
yylval.ivalue = strtoll( yytext, NULL, 10 );
|
||||
if (yylval.ivalue == std::numeric_limits<long long>::min)
|
||||
throw Base::UnderflowError("Integer underflow");
|
||||
else if (yylval.ivalue == std::numeric_limits<long long>::max)
|
||||
else if (yylval.ivalue == std::numeric_limits<long long>::max())
|
||||
throw Base::OverflowError("Integer overflow");
|
||||
if (yylval.ivalue == 1) { yylval.fvalue = 1; return ONE; } else return INTEGER;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user