Fix compiler warning from int size mismatch
Cast consistently to quint8, which is the type we are streaming out in the test. Change-Id: I44d360ca6b75f14e7a2b80962ad249a6f6b1cb31 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
parent
a014300898
commit
627542c841
@ -2129,8 +2129,8 @@ void tst_QCborValue::extendedTypeValidation_data()
|
||||
|
||||
// walking null
|
||||
char dt[] = "2020-04-15T17:33:32.125Z";
|
||||
quint8 len = strlen(dt);
|
||||
for (int i = 0; i < int(len); ++i) {
|
||||
quint8 len = quint8(strlen(dt));
|
||||
for (quint8 i = 0; i < len; ++i) {
|
||||
char c = '\0';
|
||||
qSwap(c, dt[i]);
|
||||
QTest::addRow("DateTime:Null-at-%d", i)
|
||||
|
Loading…
Reference in New Issue
Block a user