Index: webrtc/common_audio/signal_processing/energy.c |
diff --git a/webrtc/common_audio/signal_processing/energy.c b/webrtc/common_audio/signal_processing/energy.c |
index 1d1ed6284537b91bed323c9f8aa98c43d55eda5e..e83f1a698f609e95eba8a0fc399d03d8c218174d 100644 |
--- a/webrtc/common_audio/signal_processing/energy.c |
+++ b/webrtc/common_audio/signal_processing/energy.c |
@@ -17,13 +17,15 @@ |
#include "webrtc/common_audio/signal_processing/include/signal_processing_library.h" |
-int32_t WebRtcSpl_Energy(int16_t* vector, int vector_length, int* scale_factor) |
+int32_t WebRtcSpl_Energy(int16_t* vector, |
+ size_t vector_length, |
+ int* scale_factor) |
{ |
int32_t en = 0; |
- int i; |
+ size_t i; |
int scaling = |
WebRtcSpl_GetScalingSquare(vector, vector_length, vector_length); |
- int looptimes = vector_length; |
+ size_t looptimes = vector_length; |
int16_t *vectorptr = vector; |
for (i = 0; i < looptimes; i++) |