diff --git a/src/mod/formats/mod_tone_stream/mod_tone_stream.c b/src/mod/formats/mod_tone_stream/mod_tone_stream.c index 5d3b41d701..1a8dcfd756 100644 --- a/src/mod/formats/mod_tone_stream/mod_tone_stream.c +++ b/src/mod/formats/mod_tone_stream/mod_tone_stream.c @@ -85,7 +85,7 @@ static switch_status_t silence_stream_file_read(switch_file_handle_t *handle, vo return SWITCH_STATUS_FALSE; } - if (*len > sh->samples) { + if (*len > (size_t)sh->samples) { *len = sh->samples; }