Skip to content

Commit

Permalink
missing parentheses
Browse files Browse the repository at this point in the history
  • Loading branch information
Diebbo committed Dec 19, 2024
1 parent 95a5df3 commit 8e09444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack/pico_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8e09444

Please sign in to comment.