Clang: explicit char-initialization of ByteArray

main
Adriaan de Groot 8 years ago
parent 3527c82327
commit 0b39e50cdc

@ -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;
} }

Loading…
Cancel
Save