diff options
author | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-23 21:57:49 +0100 |
---|---|---|
committer | Bent Bisballe Nyeng <deva@aasimon.org> | 2016-01-23 21:57:49 +0100 |
commit | b162c4023d1b8bd3d8720f09b50f9268aac41f8f (patch) | |
tree | ddb8f2c14a7ad5edf69f948659c5f37051af7014 | |
parent | 1006ca02c427c697acb08d7734b6d32157e7924b (diff) |
Fix some size_t printf format warnings.
-rw-r--r-- | test/audiocachetest.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/audiocachetest.cc b/test/audiocachetest.cc index 193004f..157cc03 100644 --- a/test/audiocachetest.cc +++ b/test/audiocachetest.cc @@ -78,7 +78,7 @@ public: ++initial_samples_needed) { - printf("open: initial_samples_needed: %d\n", initial_samples_needed); + printf("open: initial_samples_needed: %d\n", (int)initial_samples_needed); sample_t *samples = audioCache.open(&audioFile, initial_samples_needed, channel, id); size_t size = initial_samples_needed; @@ -118,8 +118,9 @@ public: { printf("-----> offset: %d, size: %d, diff: %d," " i: %d, size: %d, block-diff: %d\n", - offset, audioFileRef.size, audioFileRef.size - offset, - i, size, size - i); + (int)offset, (int)audioFileRef.size, + (int)(audioFileRef.size - offset), + (int)i, (int)size, (int)(size - i)); } CPPUNIT_ASSERT_EQUAL(audioFileRef.data[offset], samples[i]); ++offset; |