OSDN Git Service

use correct type for meta type in qNumVariantToHelper<T>()
authorIvailo Monev <xakepa10@gmail.com>
Tue, 12 Jan 2021 08:12:28 +0000 (10:12 +0200)
committerIvailo Monev <xakepa10@gmail.com>
Tue, 12 Jan 2021 08:12:28 +0000 (10:12 +0200)
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
src/core/kernel/qvariant.cpp

index 93a30a5..cf456cb 100644 (file)
@@ -2510,7 +2510,7 @@ template <typename T>
 inline T qNumVariantToHelper(const QVariant::Private &d,
                              const QVariant::Handler *handler, bool *ok, const T& val)
 {
-    uint t = qMetaTypeId<T>();
+    int t = qMetaTypeId<T>();
     if (ok)
         *ok = true;
     if (d.type == t)