Skip to content
Snippets Groups Projects
Commit aa893177 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Fix compiler warnings in dumper tests.

parent 9e10e11c
No related branches found
No related tags found
No related merge requests found
......@@ -60,14 +60,14 @@ template <class T>
unsigned char *mem = 0;
if (optTestUninitialized) {
mem = new unsigned char[sizeof(T)];
for (int i = 0; i < sizeof(T); i++) {
for (unsigned int i = 0; i < sizeof(T); i++) {
mem[i] = char(rand() % 255u);
}
} else {
mem = reinterpret_cast<unsigned char*>(in);
}
if (optVerbose) {
for (int i = 0; i < sizeof(T); i++) {
for (unsigned int i = 0; i < sizeof(T); i++) {
unsigned int b = mem[i];
printf("%2d %2x %3d\n", i, b, b);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment