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

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

Issue 1174813003: Prepare to convert various types to size_t. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc@master
Patch Set: Review comments + resync Created 5 years, 6 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
Index: webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c
diff --git a/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c b/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c
index b6754418ac94898f3a9caae5094fda1366148695..bfe0e64314594d52b1571a75d3e7c601d536327d 100644
--- a/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c
+++ b/webrtc/modules/audio_coding/codecs/ilbc/cb_mem_energy_calc.c
@@ -41,7 +41,7 @@ void WebRtcIlbcfix_CbMemEnergyCalc(
eSh_ptr = &energyShifts[1+base_size];
eW16_ptr = &energyW16[1+base_size];
- for(j=0;j<range-1;j++) {
+ for (j = 0; j + 1 < range; j++) {
/* Calculate next energy by a +/-
operation on the edge samples */
« no previous file with comments | « webrtc/modules/audio_coding/codecs/g722/test/testG722.cc ('k') | webrtc/modules/audio_coding/codecs/ilbc/cb_search.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698