Index: webrtc/modules/utility/source/audio_frame_operations_unittest.cc |
diff --git a/webrtc/modules/utility/source/audio_frame_operations_unittest.cc b/webrtc/modules/utility/source/audio_frame_operations_unittest.cc |
index f4d881cf8710f68bd506c36415fd68e753b9676e..c278cdddcdcd7b4edbd84a19f03ad98c8761f3cb 100644 |
--- a/webrtc/modules/utility/source/audio_frame_operations_unittest.cc |
+++ b/webrtc/modules/utility/source/audio_frame_operations_unittest.cc |
@@ -28,14 +28,14 @@ class AudioFrameOperationsTest : public ::testing::Test { |
}; |
void SetFrameData(AudioFrame* frame, int16_t left, int16_t right) { |
- for (int i = 0; i < frame->samples_per_channel_ * 2; i += 2) { |
+ for (size_t i = 0; i < frame->samples_per_channel_ * 2; i += 2) { |
frame->data_[i] = left; |
frame->data_[i + 1] = right; |
} |
} |
void SetFrameData(AudioFrame* frame, int16_t data) { |
- for (int i = 0; i < frame->samples_per_channel_; i++) { |
+ for (size_t i = 0; i < frame->samples_per_channel_; i++) { |
frame->data_[i] = data; |
} |
} |
@@ -45,7 +45,7 @@ void VerifyFramesAreEqual(const AudioFrame& frame1, const AudioFrame& frame2) { |
EXPECT_EQ(frame1.samples_per_channel_, |
frame2.samples_per_channel_); |
- for (int i = 0; i < frame1.samples_per_channel_ * frame1.num_channels_; |
+ for (size_t i = 0; i < frame1.samples_per_channel_ * frame1.num_channels_; |
i++) { |
EXPECT_EQ(frame1.data_[i], frame2.data_[i]); |
} |