summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2016-01-23 21:53:00 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2016-01-23 21:53:00 +0100
commit8d9fb285ce08fc343b1fd7e08420ab514cd2db10 (patch)
tree4e83e6ce80b535fc223b9bebfdd2dff37e8d3198 /test
parent379f09d5f5314b5f725fbcc305019b33a9cb664b (diff)
Fix signed-unsigned comparison warning.
Diffstat (limited to 'test')
-rw-r--r--test/audiocachefiletest.cc11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/audiocachefiletest.cc b/test/audiocachefiletest.cc
index a70091c..3234b72 100644
--- a/test/audiocachefiletest.cc
+++ b/test/audiocachefiletest.cc
@@ -99,12 +99,9 @@ public:
volatile bool ready[13];
for(size_t c = 0; c < 13; ++c)
{
- for(int c = 0; c < 13; ++c)
+ for(size_t i = 0; i < bufferSize; ++i)
{
- for(int i = 0; i < bufferSize; ++i)
- {
- samples[c][i] = 42;
- }
+ samples[c][i] = 42;
}
channels.push_back(
@@ -142,9 +139,9 @@ public:
}
sample_t diff[13] = {0.0};
- for(int c = 0; c < 13; ++c)
+ for(size_t c = 0; c < 13; ++c)
{
- for(int i = 0; i < readSize; ++i)
+ for(size_t i = 0; i < readSize; ++i)
{
diff[c] += abs(refFile[c]->data[i + offset] - samples[c][i]);
}