diff --git a/src/App/ExpressionParser.l b/src/App/ExpressionParser.l index bed2fc5f33..937e8393e7 100644 --- a/src/App/ExpressionParser.l +++ b/src/App/ExpressionParser.l @@ -343,7 +343,7 @@ EXPO [eE][-+]?[0-9]+ yylval.ivalue = strtoll( yytext, NULL, 10 ); if (yylval.ivalue == std::numeric_limits::min) throw Base::UnderflowError("Integer underflow"); - else if (yylval.ivalue == std::numeric_limits::max) + else if (yylval.ivalue == std::numeric_limits::max()) throw Base::OverflowError("Integer overflow"); if (yylval.ivalue == 1) { yylval.fvalue = 1; return ONE; } else return INTEGER; }