Browse Source

fix compiler warning.

Signed-off-by: Kim Kulling <[email protected]>
Kim Kulling 10 years ago
parent
commit
15e0175007
1 changed files with 1 additions and 1 deletions
  1. 1 1
      test/unit/utFastAtof.cpp

+ 1 - 1
test/unit/utFastAtof.cpp

@@ -22,7 +22,7 @@ protected:
 	template <typename Real, typename AtofFunc>
 	template <typename Real, typename AtofFunc>
 	static void RunTest(AtofFunc atof_func)
 	static void RunTest(AtofFunc atof_func)
 	{
 	{
-		const Real kEps = 1e-5;
+		const Real kEps = 1e-5f;
 
 
 #define TEST_CASE(NUM) EXPECT_NEAR(static_cast<Real>(NUM), atof_func(#NUM), kEps)
 #define TEST_CASE(NUM) EXPECT_NEAR(static_cast<Real>(NUM), atof_func(#NUM), kEps)
 #define TEST_CASE_NAN(NUM) EXPECT_TRUE(IsNan(atof_func(#NUM)))
 #define TEST_CASE_NAN(NUM) EXPECT_TRUE(IsNan(atof_func(#NUM)))