diff --git a/muparser-2.2.5/src/muParserInt.cpp b/muparser-2.2.5/src/muParserInt.cpp index 10bbb1a18..7523a636c 100644 --- a/muparser-2.2.5/src/muParserInt.cpp +++ b/muparser-2.2.5/src/muParserInt.cpp @@ -162,7 +162,8 @@ int ParserInt::IsBinVal(const char_type *a_szExpr, int *a_iPos, value_type *a_fV if (i == 0) return 0; - if (i == iBits) throw exception_type(_T("Binary to integer conversion error (overflow).")); + // return false on overflow + if (i == iBits) return 0; *a_fVal = (unsigned)(iVal >> (iBits - i)); *a_iPos += i + 1;