Make checking for float64 tags work on 32-bit architectures
authorDebian Qt/KDE Maintainers <debian-qt-kde@lists.debian.org>
Wed, 16 Aug 2023 17:44:00 +0000 (18:44 +0100)
committerDmitry Shachnev <mitya57@debian.org>
Wed, 16 Aug 2023 17:44:00 +0000 (18:44 +0100)
Origin: upstream, https://code.qt.io/cgit/qbs/qbs.git/commit/?id=d8c97a5f0b1f85e7
Last-Update: 2023-08-02

Gbp-Pq: Name quickjs_32bit_float64_tag.diff

src/lib/corelib/tools/scripttools.cpp

index 83005c7884274b9778d6f8aff53ed370e007aff7..efa942fd5f7a565408160a487e84708d01d11d4b 100644 (file)
@@ -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 {};
 }