diff options
Diffstat (limited to 'main/dsp.c')
-rw-r--r-- | main/dsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/dsp.c b/main/dsp.c index f24030ebb..72be1da5e 100644 --- a/main/dsp.c +++ b/main/dsp.c @@ -1372,7 +1372,7 @@ static void ast_dsp_prog_reset(struct ast_dsp *dsp) dsp->gsamp_size = modes[dsp->progmode].size; dsp->gsamps = 0; - for (x = 0; x < sizeof(modes[dsp->progmode].freqs) / sizeof(modes[dsp->progmode].freqs[0]); x++) { + for (x = 0; x < ARRAY_LEN(modes[dsp->progmode].freqs); x++) { if (modes[dsp->progmode].freqs[x]) { goertzel_init(&dsp->freqs[x], (float)modes[dsp->progmode].freqs[x], dsp->gsamp_size); max = x + 1; |