Index: test/cctest/compiler/codegen-tester.cc |
diff --git a/test/cctest/compiler/codegen-tester.cc b/test/cctest/compiler/codegen-tester.cc |
index 5311001714c87aeabb8d68e08352ade30a921105..b20da872eb23460abf6838af693c889614db7ff5 100644 |
--- a/test/cctest/compiler/codegen-tester.cc |
+++ b/test/cctest/compiler/codegen-tester.cc |
@@ -141,7 +141,7 @@ TEST(CompareWrapper) { |
CompareWrapper wFloat64LessThanOrEqual(IrOpcode::kFloat64LessThanOrEqual); |
// Check NaN handling. |
- double nan = v8::base::OS::nan_value(); |
+ double nan = std::numeric_limits<double>::quiet_NaN(); |
double inf = V8_INFINITY; |
CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, 0.0)); |
CHECK_EQ(false, wFloat64Equal.Float64Compare(nan, 1.0)); |