summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorEdward Welbourne <edward.welbourne@qt.io>2018-08-15 10:32:25 +0200
committerEdward Welbourne <edward.welbourne@qt.io>2018-08-16 10:10:22 +0000
commitbcf0be9b8ffa4739c2be26c53210b2fe3c3f1fe0 (patch)
treeaae7496534e270be40cf5b1717344b0a36377b19 /tests
parentcd0a76a1503668155f67d7243e6e9aa8c4d77377 (diff)
Avoid signed/unsigned warning in template
tst_QtEndian's transformRegion_template() was getting a signed/unsigned comparison warning when T was unsigned in a QCOMPARE(T-value, 0); so use T(0) instead. Change-Id: I78cb2ab96f79393def65ed2c020aa3039017ab92 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/corelib/global/qtendian/tst_qtendian.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/corelib/global/qtendian/tst_qtendian.cpp b/tests/auto/corelib/global/qtendian/tst_qtendian.cpp
index 89c93bf245..7043969c2f 100644
--- a/tests/auto/corelib/global/qtendian/tst_qtendian.cpp
+++ b/tests/auto/corelib/global/qtendian/tst_qtendian.cpp
@@ -134,7 +134,7 @@ void transformRegion_template(T (*transformOne)(T), void (*transformRegion)(cons
auto checkBounds = [&](int from) {
for ( ; from < Size; ++from)
- QCOMPARE(dest[from], 0);
+ QCOMPARE(dest[from], T(0));
};
transformRegion(source, 1, dest);