diff options
author | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-12-07 14:15:47 +0100 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@theqtcompany.com> | 2015-12-07 13:44:07 +0000 |
commit | 2177fb44eac92690807d80fa24ce5564d94d508e (patch) | |
tree | 8216057bd4df09683c5d631b33c06f3210647c84 /src/qml/jsruntime/qv4dateobject_p.h | |
parent | 4ab7deb923237b0186a211b0326217c480e33848 (diff) |
Replace all occurrences of qSNaN() with qQNaN()
We generally don't want to produce signalling NaNs as those cannot be
used in any further arithmetic operations.
In particular -(qSNaN()) claims it's not a double.
Task-number: QTBUG-49753
Change-Id: I23cec4fec2ddf08c02a7d53db7f3b9ba46b6c288
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/jsruntime/qv4dateobject_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4dateobject_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4dateobject_p.h b/src/qml/jsruntime/qv4dateobject_p.h index 2eaa837666..eb048b1e99 100644 --- a/src/qml/jsruntime/qv4dateobject_p.h +++ b/src/qml/jsruntime/qv4dateobject_p.h @@ -59,7 +59,7 @@ namespace Heap { struct DateObject : Object { DateObject() { - date = qSNaN(); + date = qQNaN(); } DateObject(const Value &date) |