From 8d9fb285ce08fc343b1fd7e08420ab514cd2db10 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sat, 23 Jan 2016 21:53:00 +0100 Subject: Fix signed-unsigned comparison warning. --- test/audiocachefiletest.cc | 11 ++++------- 1 file 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]); } -- cgit v1.2.3