diff --git a/src/switch_ivr.c b/src/switch_ivr.c index 93ce359c8b..646cd96f88 100644 --- a/src/switch_ivr.c +++ b/src/switch_ivr.c @@ -496,7 +496,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se j += read_codec->implementation->number_of_channels; } - score = energy / samples; + score = (uint32_t)(energy / samples); if (score < fh->thresh) { if (!--fh->silence_hits) { break;