From 98c7a0c169809d5ef294d6e4cd2bf43e59d64d7b Mon Sep 17 00:00:00 2001 From: Raman Date: Thu, 14 Jul 2016 10:30:06 +0200 Subject: [PATCH] Update test.cpp --- tests/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test.cpp b/tests/test.cpp index 06fa79af7..4f817f060 100644 --- a/tests/test.cpp +++ b/tests/test.cpp @@ -833,7 +833,7 @@ bool FloatCompare(float a, float b) { return fabs(a - b) < 0.001; } // Additional parser testing not covered elsewhere. void ValueTest() { // Test scientific notation numbers. - TEST_EQ(FloatCompare(TestValue("{ Y:0.0314159e+2 }"), 3.14159), true); + TEST_EQ(FloatCompare(TestValue("{ Y:0.0314159e+2 }"), (float)3.14159), true); // Test conversion functions. TEST_EQ(FloatCompare(TestValue("{ Y:cos(rad(180)) }"), -1), true);