Commit 8ba563d4 authored by Josh Coalson's avatar Josh Coalson
Browse files

minor fix to cast sizeof for printf

parent 9dfca882
...@@ -183,7 +183,7 @@ FLAC__bool test_bitbuffer() ...@@ -183,7 +183,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)) { if(bb->blurbs != sizeof(test_pattern1)) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1));
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
...@@ -213,7 +213,7 @@ FLAC__bool test_bitbuffer() ...@@ -213,7 +213,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)) { if(bb->blurbs != sizeof(test_pattern1)) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1));
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
...@@ -243,7 +243,7 @@ FLAC__bool test_bitbuffer() ...@@ -243,7 +243,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)) { if(bb->blurbs != sizeof(test_pattern1)) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1));
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
...@@ -273,7 +273,7 @@ FLAC__bool test_bitbuffer() ...@@ -273,7 +273,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)) { if(bb->blurbs != sizeof(test_pattern1)) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1));
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
...@@ -305,7 +305,7 @@ FLAC__bool test_bitbuffer() ...@@ -305,7 +305,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)+1) { if(bb->blurbs != sizeof(test_pattern1)+1) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)+1); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1)+1);
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
...@@ -337,7 +337,7 @@ FLAC__bool test_bitbuffer() ...@@ -337,7 +337,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)+1) { if(bb->blurbs != sizeof(test_pattern1)+1) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)+1); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1)+1);
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
...@@ -369,7 +369,7 @@ FLAC__bool test_bitbuffer() ...@@ -369,7 +369,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)+2) { if(bb->blurbs != sizeof(test_pattern1)+2) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)+2); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1)+2);
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
...@@ -400,7 +400,7 @@ FLAC__bool test_bitbuffer() ...@@ -400,7 +400,7 @@ FLAC__bool test_bitbuffer()
return false; return false;
} }
if(bb->blurbs != sizeof(test_pattern1)+4) { if(bb->blurbs != sizeof(test_pattern1)+4) {
printf("FAILED byte count %u != %u\n", bb->blurbs, sizeof(test_pattern1)+4); printf("FAILED byte count %u != %u\n", bb->blurbs, (unsigned)sizeof(test_pattern1)+4);
FLAC__bitbuffer_dump(bb, stdout); FLAC__bitbuffer_dump(bb, stdout);
return false; return false;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment