From 0dec11ea03bc731830e5dd8e9925bd0f09ff80e0 Mon Sep 17 00:00:00 2001 From: Matthias Ringwald Date: Thu, 28 Apr 2022 22:43:07 +0200 Subject: [PATCH] windows: fix warning --- platform/windows/btstack_uart_block_windows.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/windows/btstack_uart_block_windows.c b/platform/windows/btstack_uart_block_windows.c index 8ff11233f..7a7f1c923 100644 --- a/platform/windows/btstack_uart_block_windows.c +++ b/platform/windows/btstack_uart_block_windows.c @@ -214,7 +214,7 @@ static void btstack_uart_windows_process_read(btstack_data_source_t *ds, btstack if (bytes_read != read_bytes_len){ log_debug("read: requested read %u but %u were read, try again", (int) read_bytes_len, (int) bytes_read); read_bytes_data += bytes_read; - read_bytes_len -= bytes_read; + read_bytes_len -= (uint16_t) bytes_read; btstack_uart_windows_receive_engine(); return; }