Chromium Code Reviews

Unified Diff: test/cctest/test-api.cc

Issue 121303005: Use std:: on symbols declared in C++-style C headers. (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Including <cstdlib> in cctest/test-time.cc is no longer necessary. Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Index: test/cctest/test-api.cc
diff --git a/test/cctest/test-api.cc b/test/cctest/test-api.cc
index eeb786518e8d6ca13cb5b915505017c925d98573..6ee8d8b8bb5f1d7c86ce97a78010cd03af6bf8c3 100644
--- a/test/cctest/test-api.cc
+++ b/test/cctest/test-api.cc
@@ -17665,7 +17665,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);
}

Powered by Google App Engine