From d228ff0f4347b475245fc8a70ddfd83fe7dc5e08 Mon Sep 17 00:00:00 2001 From: goldsimon Date: Sun, 1 Jul 2007 16:04:35 +0000 Subject: [PATCH] Removed warning when assigning from u32_t to u16_t by casting to u16_t. --- src/core/tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/tcp.c b/src/core/tcp.c index 8efcd8f1..d73cf695 100644 --- a/src/core/tcp.c +++ b/src/core/tcp.c @@ -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; }