summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ADT/StringExtrasTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/unittests/ADT/StringExtrasTest.cpp')
-rw-r--r--llvm/unittests/ADT/StringExtrasTest.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/unittests/ADT/StringExtrasTest.cpp b/llvm/unittests/ADT/StringExtrasTest.cpp
index 8f06f1e6e38..234a40d26cf 100644
--- a/llvm/unittests/ADT/StringExtrasTest.cpp
+++ b/llvm/unittests/ADT/StringExtrasTest.cpp
@@ -70,7 +70,7 @@ TEST(StringExtrasTest, ToAndFromHex) {
TEST(StringExtrasTest, to_float) {
float F;
EXPECT_TRUE(to_float("4.7", F));
- EXPECT_FLOAT_EQ(4.7, F);
+ EXPECT_FLOAT_EQ(4.7f, F);
double D;
EXPECT_TRUE(to_float("4.7", D));
@@ -82,5 +82,5 @@ TEST(StringExtrasTest, to_float) {
EXPECT_FALSE(to_float("foo", F));
EXPECT_FALSE(to_float("7.4 foo", F));
- EXPECT_FLOAT_EQ(4.7, F); // F should be unchanged
+ EXPECT_FLOAT_EQ(4.7f, F); // F should be unchanged
}
OpenPOWER on IntegriCloud