Index: test/cctest/test-api.cc |
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc |
index 839ddd9858f5cb43bae637531c55742a601a328b..66ffc9a8b3679afe7be2ae8ac4167aeb2e489f89 100644 |
--- a/test/cctest/test-api.cc |
+++ b/test/cctest/test-api.cc |
@@ -17797,7 +17797,7 @@ static double DoubleToDateTime(double input) { |
if (std::isnan(input) || input < -date_limit || input > date_limit) { |
return i::OS::nan_value(); |
} |
- return (input < 0) ? -(floor(-input)) : floor(input); |
+ return (input < 0) ? -(std::floor(-input)) : std::floor(input); |
} |