From 7d2256f92c58a19842ee6a01e8f95ee2dabd9354 Mon Sep 17 00:00:00 2001 From: Jesse Talavera-Greenberg Date: Fri, 16 Jun 2023 13:14:26 -0400 Subject: [PATCH] Silence a warning --- audio/drivers_microphone/wasapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */