diff --git a/lib/base/value-operators.cpp b/lib/base/value-operators.cpp index 477076537..7c25188c7 100644 --- a/lib/base/value-operators.cpp +++ b/lib/base/value-operators.cpp @@ -159,7 +159,7 @@ bool Value::operator==(const Value& rhs) const { if (IsNumber() && rhs.IsNumber()) return Get() == rhs.Get(); - else if ((IsBoolean() || IsNumber() || IsEmpty()) && (rhs.IsBoolean() || rhs.IsNumber() || rhs.IsEmpty()) && !(IsEmpty() && rhs.IsEmpty())) + else if ((IsBoolean() || IsNumber()) && (rhs.IsBoolean() || rhs.IsNumber()) && !(IsEmpty() && rhs.IsEmpty())) return static_cast(*this) == static_cast(rhs); if (IsString() && rhs.IsString())