From 8e0944435ea7a5bc956daa336c46b4806d6bfd3a Mon Sep 17 00:00:00 2001 From: Diebbo Date: Thu, 19 Dec 2024 10:25:00 +0100 Subject: [PATCH] missing parentheses --- stack/pico_socket.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stack/pico_socket.c b/stack/pico_socket.c index af5303fe..364f0cae 100644 --- a/stack/pico_socket.c +++ b/stack/pico_socket.c @@ -1617,7 +1617,7 @@ int pico_socket_fionread(struct pico_socket *s) if(!f->payload_len) { f->payload = f->transport_hdr + sizeof(struct pico_udp_hdr); f->payload_len = - f->transport_len > sizeof(struct pico_udp_hdr)) ? + (f->transport_len > sizeof(struct pico_udp_hdr)) ? (uint16_t)(f->transport_len - sizeof(struct pico_udp_hdr)): 0; }