From b3c3ecf926517722ebc39ed24f358c44dfaa0b92 Mon Sep 17 00:00:00 2001 From: orbitcowboy Date: Sun, 26 May 2019 10:46:12 +0200 Subject: [PATCH] MathLib: Removed condition that is evaluates always to 'false'. --- lib/mathlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index b2afe4ed9..0f46ec29a 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -1335,7 +1335,7 @@ bool MathLib::isLessEqual(const std::string &first, const std::string &second) **/ bool MathLib::isNullValue(const std::string &str) { - if (str.empty() || (!std::isdigit(static_cast(str[0])) && (str.size() < 1 || (str[0] != '.' && str[0] != '-' && str[0] != '+')))) + if (str.empty() || (!std::isdigit(static_cast(str[0])) && (str[0] != '.' && str[0] != '-' && str[0] != '+') )) return false; // Has to be a number for (size_t i = 0; i < str.size(); i++) {