Index: test/cctest/test-conversions.cc |
diff --git a/test/cctest/test-conversions.cc b/test/cctest/test-conversions.cc |
index 93bed7f4de13847880f0eacdcc59ed462675e50f..aa5c2fbcbdd0954c1ea7f30229693edeba9804e8 100644 |
--- a/test/cctest/test-conversions.cc |
+++ b/test/cctest/test-conversions.cc |
@@ -172,12 +172,12 @@ TEST(TrailingJunk) { |
TEST(NonStrDecimalLiteral) { |
UnicodeCache uc; |
- CHECK(std::isnan( |
- StringToDouble(&uc, " ", NO_FLAGS, v8::base::OS::nan_value()))); |
- CHECK( |
- std::isnan(StringToDouble(&uc, "", NO_FLAGS, v8::base::OS::nan_value()))); |
- CHECK(std::isnan( |
- StringToDouble(&uc, " ", NO_FLAGS, v8::base::OS::nan_value()))); |
+ CHECK(std::isnan(StringToDouble(&uc, " ", NO_FLAGS, |
+ std::numeric_limits<double>::quiet_NaN()))); |
+ CHECK(std::isnan(StringToDouble(&uc, "", NO_FLAGS, |
+ std::numeric_limits<double>::quiet_NaN()))); |
+ CHECK(std::isnan(StringToDouble(&uc, " ", NO_FLAGS, |
+ std::numeric_limits<double>::quiet_NaN()))); |
CHECK_EQ(0.0, StringToDouble(&uc, "", NO_FLAGS)); |
CHECK_EQ(0.0, StringToDouble(&uc, " ", NO_FLAGS)); |
} |