From 7346d07871a379680ad0f347257ee4f7a50cee24 Mon Sep 17 00:00:00 2001 From: Simon Martin Date: Sun, 24 Jul 2011 21:35:21 +0200 Subject: [PATCH] Fix GCC warning about float comparison. Ticket: #2936 --- lib/mathlib.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/mathlib.cpp b/lib/mathlib.cpp index b99c3a648..8fea77ba9 100644 --- a/lib/mathlib.cpp +++ b/lib/mathlib.cpp @@ -304,7 +304,7 @@ bool MathLib::isEqual(const std::string &first, const std::string &second) bool MathLib::isNotEqual(const std::string &first, const std::string &second) { - return toDoubleNumber(first) != toDoubleNumber(second); + return !isEqual(first, second); } bool MathLib::isGreater(const std::string &first, const std::string &second)