Fix build on Mac OS X
authorSimon Hausmann <simon.hausmann@digia.com>
Thu, 24 Jan 2013 11:26:44 +0000 (12:26 +0100)
committerSimon Hausmann <simon.hausmann@digia.com>
Thu, 24 Jan 2013 11:27:22 +0000 (12:27 +0100)
Use std::isnan instead of isnan, like everywhere else in the file.

Change-Id: Ie58288b0a8d2043dc88054babe3beee78007cd15
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
qv4dateobject.cpp

index 3038e72..b9a4446 100644 (file)
@@ -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);