summaryrefslogtreecommitdiff
path: root/deps/v8/src/platform-freebsd.cc
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/platform-freebsd.cc')
-rw-r--r--deps/v8/src/platform-freebsd.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/deps/v8/src/platform-freebsd.cc b/deps/v8/src/platform-freebsd.cc
index 75d88ec5d3..9ab6583e06 100644
--- a/deps/v8/src/platform-freebsd.cc
+++ b/deps/v8/src/platform-freebsd.cc
@@ -25,8 +25,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-// Platform specific code for FreeBSD goes here. For the POSIX comaptible parts
-// the implementation is in platform-posix.cc.
+// Platform-specific code for FreeBSD goes here. For the POSIX-compatible
+// parts, the implementation is in platform-posix.cc.
#include <pthread.h>
#include <semaphore.h>
@@ -63,7 +63,7 @@ namespace internal {
const char* OS::LocalTimezone(double time) {
if (std::isnan(time)) return "";
- time_t tv = static_cast<time_t>(floor(time/msPerSecond));
+ time_t tv = static_cast<time_t>(std::floor(time/msPerSecond));
struct tm* t = localtime(&tv);
if (NULL == t) return "";
return t->tm_zone;