From d490be964948469f3a7f1f6654e283002475fd08 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Sun, 23 Mar 2025 23:34:29 +0100 Subject: [PATCH] cppcheck truncLongCastAssignment --- client/src/uart/uart_posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/uart/uart_posix.c b/client/src/uart/uart_posix.c index 679ea58bf..f1601fcb2 100644 --- a/client/src/uart/uart_posix.c +++ b/client/src/uart/uart_posix.c @@ -479,7 +479,7 @@ int uart_receive(const serial_port sp, uint8_t *pbtRx, uint32_t pszMaxRxLen, uin const serial_port_unix_t_t *spu = (serial_port_unix_t_t *)sp; if (newtimeout_pending) { - timeout.tv_usec = newtimeout_value * 1000; + timeout.tv_usec = ((suseconds_t)newtimeout_value) * 1000; newtimeout_pending = false; } // Reset the output count