Index: webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c |
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c b/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c |
index 2b58abc4f94c74cbf22ee9426918c6dee561828e..af0404537fd3384bc6a7456bc71b273398c6eae9 100644 |
--- a/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c |
+++ b/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c |
@@ -22,9 +22,8 @@ void WebRtcIlbcfix_NearestNeighbor(size_t* index, |
const size_t* array, |
size_t value, |
size_t arlength) { |
- size_t i; |
size_t min_diff = (size_t)-1; |
- for (i = 0; i < arlength; i++) { |
+ for (size_t i = 0; i < arlength; i++) { |
const size_t diff = |
(array[i] < value) ? (value - array[i]) : (array[i] - value); |
if (diff < min_diff) { |