mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-06 20:29:04 +00:00
Removed warning when assigning from u32_t to u16_t by casting to u16_t.
This commit is contained in:
parent
9abbb581c5
commit
d228ff0f43
@ -575,7 +575,7 @@ tcp_slowtmr(void)
|
||||
|
||||
/* Reduce congestion window and ssthresh. */
|
||||
eff_wnd = LWIP_MIN(pcb->cwnd, pcb->snd_wnd);
|
||||
pcb->ssthresh = eff_wnd >> 1;
|
||||
pcb->ssthresh = (u16_t)(eff_wnd >> 1);
|
||||
if (pcb->ssthresh < pcb->mss) {
|
||||
pcb->ssthresh = pcb->mss * 2;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user