diff options
author | Dmitry Shachnev <mitya57@gmail.com> | 2023-08-02 12:54:56 +0300 |
---|---|---|
committer | Christian Kandeler <christian.kandeler@qt.io> | 2023-08-02 12:28:46 +0000 |
commit | d8c97a5f0b1f85e79829dbcc63b82bc5b1d83233 (patch) | |
tree | ad0f4ba46b60ff943af5386453e7aeed1cebc120 /src/lib/corelib/tools/scripttools.cpp | |
parent | 65a106c95945338df4bfebd03390d7572eb1b09a (diff) |
Make checking for float64 tags work on 32-bit architecturesv2.1.2
Fixes: QBS-1745
Change-Id: I11fb7fc8d9b047e814fd090141a0c434e1b6cd63
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/tools/scripttools.cpp')
-rw-r--r-- | src/lib/corelib/tools/scripttools.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/corelib/tools/scripttools.cpp b/src/lib/corelib/tools/scripttools.cpp index 83005c788..efa942fd5 100644 --- a/src/lib/corelib/tools/scripttools.cpp +++ b/src/lib/corelib/tools/scripttools.cpp @@ -318,7 +318,7 @@ static QVariant getJsVariantImpl(JSContext *ctx, JSValue val, QList<JSValue> pat const auto tag = JS_VALUE_GET_TAG(val); if (tag == JS_TAG_INT) return JS_VALUE_GET_INT(val); - else if (tag == JS_TAG_FLOAT64) + else if (JS_TAG_IS_FLOAT64(tag)) return JS_VALUE_GET_FLOAT64(val); return {}; } |