diff --git a/audio/drivers_microphone/wasapi.c b/audio/drivers_microphone/wasapi.c index a460244ad3..2c4f5d8e95 100644 --- a/audio/drivers_microphone/wasapi.c +++ b/audio/drivers_microphone/wasapi.c @@ -225,7 +225,7 @@ static int wasapi_microphone_read_buffered( /* Now that we have samples available, let's give them to the core */ - bytes_read = MIN(buffer_size, bytes_available); + bytes_read = MIN((int)buffer_size, bytes_available); fifo_read(microphone->buffer, buffer, bytes_read); /* Read data from the sample queue and store it in the provided buffer */