Skip to content

Commit 0f0ab68

Browse files
gasbytesdanielinux
authored andcommitted
proper casting in tcp_seq_leq
1 parent 7ee28c2 commit 0f0ab68

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/wolfip.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1843,7 +1843,7 @@ static inline uint32_t tcp_seq_inc(uint32_t seq, uint32_t n)
18431843
*/
18441844
static inline int tcp_seq_leq(uint32_t a, uint32_t b)
18451845
{
1846-
return (int32_t)(a - b) <= 0;
1846+
return ((int32_t)a - (int32_t)b) <= 0;
18471847
}
18481848

18491849
/* Receive an ack */

0 commit comments

Comments
 (0)