Skip to content

Commit 4b6dc1e

Browse files
committed
Fix invalid C code found by gcc-4.6.
Change-Id: Ib76086577a8b1a6567d91751e137f550ca64a288
1 parent e48d584 commit 4b6dc1e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/modules/audio_processing/agc/main/source/analog_agc.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -921,8 +921,7 @@ WebRtc_Word32 WebRtcAgc_ProcessAnalog(void *state, WebRtc_Word32 inMicLevel,
921921
stt->Rxx16_vectorw32[stt->Rxx16pos] = Rxx16w32;
922922

923923
/* Circular buffer */
924-
stt->Rxx16pos = stt->Rxx16pos++;
925-
if (stt->Rxx16pos == RXX_BUFFER_LEN)
924+
if (++(stt->Rxx16pos) == RXX_BUFFER_LEN)
926925
{
927926
stt->Rxx16pos = 0;
928927
}

0 commit comments

Comments
 (0)