fixed compiler warning (signed/unsigned comparison) introduced when fixing bug #44766

This commit is contained in:
goldsimon 2015-04-10 07:46:31 +02:00
parent d31dbc6798
commit 1985579148

View File

@ -970,7 +970,7 @@ tcp_receive(struct tcp_pcb *pcb)
/* Update window. */
if (TCP_SEQ_LT(pcb->snd_wl1, seqno) ||
(pcb->snd_wl1 == seqno && TCP_SEQ_LT(pcb->snd_wl2, ackno)) ||
(pcb->snd_wl2 == ackno && SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
(pcb->snd_wl2 == ackno && (u32_t)SND_WND_SCALE(pcb, tcphdr->wnd) > pcb->snd_wnd)) {
pcb->snd_wnd = SND_WND_SCALE(pcb, tcphdr->wnd);
/* keep track of the biggest window announced by the remote host to calculate
the maximum segment size */