diff --git a/tests/auto/core5/codecs/qtextcodec/tst_qtextcodec.cpp b/tests/auto/core5/codecs/qtextcodec/tst_qtextcodec.cpp index 8a06807..bf880c1 100644 --- a/tests/auto/core5/codecs/qtextcodec/tst_qtextcodec.cpp +++ b/tests/auto/core5/codecs/qtextcodec/tst_qtextcodec.cpp @@ -1678,7 +1678,7 @@ void tst_QTextCodec::utf8Codec() QFETCH(int, len); QString str = codec->toUnicode(utf8.isNull() ? 0 : utf8.constData(), - len < 0 ? qstrlen(utf8.constData()) : len); + len < 0 ? int(qstrlen(utf8.constData())) : len); QCOMPARE(str, res); str = QString::fromUtf8(utf8.isNull() ? 0 : utf8.constData(), len); diff --git a/tests/auto/core5/sax/qxmlsimplereader/tst_qxmlsimplereader.cpp b/tests/auto/core5/sax/qxmlsimplereader/tst_qxmlsimplereader.cpp index 0861440..f42afe9 100644 --- a/tests/auto/core5/sax/qxmlsimplereader/tst_qxmlsimplereader.cpp +++ b/tests/auto/core5/sax/qxmlsimplereader/tst_qxmlsimplereader.cpp @@ -529,7 +529,7 @@ void tst_QXmlSimpleReader::inputFromString() { QString str = "kakeja"; QBuffer buff; - buff.setData((char*)str.utf16(), str.size()*sizeof(ushort)); + buff.setData((char*)str.utf16(), int(str.size()*sizeof(ushort))); QXmlInputSource input(&buff);