projects
/
platform
/
upstream
/
qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7afb2e2
)
Fix build on Mac OS X
author
Simon Hausmann
<simon.hausmann@digia.com>
Thu, 24 Jan 2013 11:26:44 +0000
(12:26 +0100)
committer
Simon 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
patch
|
blob
|
history
diff --git
a/qv4dateobject.cpp
b/qv4dateobject.cpp
index
3038e72
..
b9a4446
100644
(file)
--- 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);