Index: webrtc/modules/audio_processing/rms_level.cc |
diff --git a/webrtc/modules/audio_processing/rms_level.cc b/webrtc/modules/audio_processing/rms_level.cc |
index 14136bf30495dda86c9240b5b8ab03b6e33c4e40..70c4422d34bae2c5f9542162da6b2d98a65f01de 100644 |
--- a/webrtc/modules/audio_processing/rms_level.cc |
+++ b/webrtc/modules/audio_processing/rms_level.cc |
@@ -28,14 +28,14 @@ void RMSLevel::Reset() { |
sample_count_ = 0; |
} |
-void RMSLevel::Process(const int16_t* data, int length) { |
- for (int i = 0; i < length; ++i) { |
+void RMSLevel::Process(const int16_t* data, size_t length) { |
+ for (size_t i = 0; i < length; ++i) { |
sum_square_ += data[i] * data[i]; |
} |
sample_count_ += length; |
} |
-void RMSLevel::ProcessMuted(int length) { |
+void RMSLevel::ProcessMuted(size_t length) { |
sample_count_ += length; |
} |