diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-26 16:46:27 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2020-07-26 17:39:31 +0200 |
commit | d96193b0ec79e675d50a20054beaa1dfb825790d (patch) | |
tree | 9ab20a41ca607c113da4d781c1276f4569d43376 /tests/auto/corelib/serialization/qcborvalue_json/tst_qcborvalue_json.cpp | |
parent | 99ebbaead7621a45285e465dfda11bfb272abf6b (diff) |
Fix warning when printing of qsizetype
warning: format specifies type 'int' but the argument has type 'qsizetype' (aka 'long long')
Change-Id: I6099b53efecea46d191d5dc019c986f99e49c1f1
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests/auto/corelib/serialization/qcborvalue_json/tst_qcborvalue_json.cpp')
-rw-r--r-- | tests/auto/corelib/serialization/qcborvalue_json/tst_qcborvalue_json.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/serialization/qcborvalue_json/tst_qcborvalue_json.cpp b/tests/auto/corelib/serialization/qcborvalue_json/tst_qcborvalue_json.cpp index eeeec9b67f..10080a66ed 100644 --- a/tests/auto/corelib/serialization/qcborvalue_json/tst_qcborvalue_json.cpp +++ b/tests/auto/corelib/serialization/qcborvalue_json/tst_qcborvalue_json.cpp @@ -80,7 +80,7 @@ void tst_QCborValue_Json::toVariant_data() if (v.type() == QCborValue::Double) return QTest::addRow("Double:%g", exp.toDouble()); if (v.type() == QCborValue::ByteArray || v.type() == QCborValue::String) - return QTest::addRow("%s:%d", typeString, exp.toString().size()); + return QTest::addRow("%s:%zd", typeString, size_t(exp.toString().size())); if (v.type() >= 0x10000) return QTest::newRow(exp.typeName()); return QTest::newRow(typeString); |