summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2016-03-27 12:36:37 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2016-03-27 12:38:18 +0200
commitee567d8579030669e1fc39197a7579a32c65aa0a (patch)
tree0c93b71234c66f20b9fda8b56cc6456645ee053d
parentbbb46a885d3666d6f49b3911efd63aa44ae980e1 (diff)
downloadrockbox-ee567d8579030669e1fc39197a7579a32c65aa0a.tar.gz
rockbox-ee567d8579030669e1fc39197a7579a32c65aa0a.zip
Fix wrong typecast in test.
Change-Id: I01acae450bcbb9c9e2b45d3ee62817b9256540c3
-rw-r--r--rbutil/rbutilqt/test/test-httpget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/test/test-httpget.cpp b/rbutil/rbutilqt/test/test-httpget.cpp
index 0388081452..70b581a74a 100644
--- a/rbutil/rbutilqt/test/test-httpget.cpp
+++ b/rbutil/rbutilqt/test/test-httpget.cpp
@@ -426,7 +426,7 @@ void TestHttpGet::testContentToBuffer(void)
426 QCOMPARE(m_waitTimeoutOccured, false); 426 QCOMPARE(m_waitTimeoutOccured, false);
427 QCOMPARE(m_getter->readAll(), QByteArray(TEST_BINARY_BLOB)); 427 QCOMPARE(m_getter->readAll(), QByteArray(TEST_BINARY_BLOB));
428 // sizeof(TEST_BINARY_BLOB) will include an additional terminating NULL. 428 // sizeof(TEST_BINARY_BLOB) will include an additional terminating NULL.
429 QCOMPARE((unsigned long)m_getter->readAll().size(), sizeof(TEST_BINARY_BLOB) - 1); 429 QCOMPARE(m_getter->readAll().size(), (int)sizeof(TEST_BINARY_BLOB) - 1);
430 QCOMPARE(m_progressSpy->at(m_progressSpy->count() - 1).at(0).toInt(), (int)sizeof(TEST_BINARY_BLOB) - 1); 430 QCOMPARE(m_progressSpy->at(m_progressSpy->count() - 1).at(0).toInt(), (int)sizeof(TEST_BINARY_BLOB) - 1);
431 QCOMPARE(m_progressSpy->at(m_progressSpy->count() - 1).at(1).toInt(), (int)sizeof(TEST_BINARY_BLOB) - 1); 431 QCOMPARE(m_progressSpy->at(m_progressSpy->count() - 1).at(1).toInt(), (int)sizeof(TEST_BINARY_BLOB) - 1);
432} 432}