diff --git a/lib/calculate.h b/lib/calculate.h index eb3665d5693..cab6e3e9ba2 100644 --- a/lib/calculate.h +++ b/lib/calculate.h @@ -63,14 +63,14 @@ R calculate(const std::string& s, const T& x, const T& y, bool* error = nullptr) case '*': return wrap(x * y); case '/': - if (isZero(y) || (std::is_integral::value && std::is_signed::value && isEqual(y, T(-1)) && isEqual(x, std::numeric_limits::min()))) { + if (isZero(y) || (std::is_integral::value && std::is_signed::value && isEqual(y, T(-1)) && isEqual(x, std::numeric_limits::min()))) { // cppcheck.suppress knownConditionTrueFalse if (error) *error = true; return R{}; } return wrap(x / y); case '%': - if (isZero(MathLib::bigint(y)) || (std::is_integral::value && std::is_signed::value && isEqual(y, T(-1)) && isEqual(x, std::numeric_limits::min()))) { + if (isZero(MathLib::bigint(y)) || (std::is_integral::value && std::is_signed::value && isEqual(y, T(-1)) && isEqual(x, std::numeric_limits::min()))) { // cppcheck.suppress knownConditionTrueFalse if (error) *error = true; return R{};