From e772c0e43bf099d4d241b9b3c64ad8795ef7fc9d Mon Sep 17 00:00:00 2001 From: Henry Fredrick Schreiner Date: Thu, 30 Mar 2017 16:43:14 -0400 Subject: [PATCH] Trying to fix VS warning --- tests/HelpersTest.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/HelpersTest.cpp b/tests/HelpersTest.cpp index e30feb46..cdc4fa4e 100644 --- a/tests/HelpersTest.cpp +++ b/tests/HelpersTest.cpp @@ -350,7 +350,7 @@ TEST(Types, LexicalCastDouble) { std::string input = "9.12"; long double x; EXPECT_TRUE(CLI::detail::lexical_cast(input, x)); - EXPECT_FLOAT_EQ(9.12, (float) x); + EXPECT_FLOAT_EQ((float) 9.12, (float) x); std::string bad_input = "hello"; EXPECT_FALSE(CLI::detail::lexical_cast(bad_input, x));