Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(255)

Unified Diff: webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c

Issue 1354163002: Fix ChromeOS build (C99 break) (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 af0404537fd3384bc6a7456bc71b273398c6eae9..2b58abc4f94c74cbf22ee9426918c6dee561828e 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/nearest_neighbor.c
@@ -22,8 +22,9 @@ 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 (size_t i = 0; i < arlength; i++) {
+ for (i = 0; i < arlength; i++) {
const size_t diff =
(array[i] < value) ? (value - array[i]) : (array[i] - value);
if (diff < min_diff) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698