Clang: explicit char-initialization of ByteArray

This commit is contained in:
Adriaan de Groot 2017-09-10 07:36:23 -04:00
parent 3527c82327
commit 0b39e50cdc

View File

@ -80,7 +80,7 @@ generateTestData( qint64 size )
// Fill the array explicitly to keep Valgrind happy // Fill the array explicitly to keep Valgrind happy
for ( auto it = ba.data() ; it < ba.data() + size ; ++it ) for ( auto it = ba.data() ; it < ba.data() + size ; ++it )
{ {
*it = rand() % 256; *it = char( rand() & 0xff );
} }
return ba; return ba;
} }