Update src/App/ExpressionParser.l

Fixes issue in expression parser

Co-authored-by: Chris Hennes <chennes@pioneerlibrarysystem.org>
This commit is contained in:
Benjamin Nauck
2025-03-29 20:56:30 +01:00
committed by GitHub
parent 8d228090de
commit 1dc34ffcd4

View File

@@ -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;
}