summaryrefslogtreecommitdiffstats
path: root/src/testlib/qtest.h
diff options
context:
space:
mode:
authorMartin Koller <kollix@aon.at>2020-03-07 21:57:57 +0100
committerMartin Koller <kollix@aon.at>2020-04-11 09:42:37 +0100
commitce672e1c9b1d6272ff8ce6fc626f61f7f3adce06 (patch)
tree5d3575b8ae70d5b9b019f18a5ef223dd4df1c6fd /src/testlib/qtest.h
parent033d01bd6e2aef740ad1408a04d3ca0ae3b9ba9b (diff)
avoid compile warning when using clang++ with -Wshorten-64-to-32
Change-Id: I78a6cd84ac5b8c250d9569d864a7e38269b85e10 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/testlib/qtest.h')
-rw-r--r--src/testlib/qtest.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/testlib/qtest.h b/src/testlib/qtest.h
index 0298ff96e3..18175196ff 100644
--- a/src/testlib/qtest.h
+++ b/src/testlib/qtest.h
@@ -97,7 +97,7 @@ template<> inline char *toString(const QBitArray &ba)
qsizetype size = ba.size();
char *str = new char[size + 1];
for (qsizetype i = 0; i < size; ++i)
- str[i] = "01"[ba.testBit(i)];
+ str[i] = "01"[ba.testBit(int(i))];
str[size] = '\0';
return str;
}