From bea4a7d8c5ed308d15d6a55cbd7e0ff18689b694 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Thu, 24 Jan 2013 12:26:44 +0100 Subject: [PATCH] Fix build on Mac OS X Use std::isnan instead of isnan, like everywhere else in the file. Change-Id: Ie58288b0a8d2043dc88054babe3beee78007cd15 Reviewed-by: Simon Hausmann --- qv4dateobject.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qv4dateobject.cpp b/qv4dateobject.cpp index 3038e72..b9a4446 100644 --- a/qv4dateobject.cpp +++ b/qv4dateobject.cpp @@ -1225,7 +1225,7 @@ Value DatePrototype::method_setFullYear(ExecutionContext *ctx) ctx->throwTypeError(); double t = LocalTime(self->value.asDouble()); - if (isnan(t)) + if (std::isnan(t)) t = 0; double year = ctx->argument(0).toNumber(ctx); double month = (ctx->argumentCount < 2) ? MonthFromTime(t) : ctx->argument(1).toNumber(ctx); -- 2.7.4