From 20137b78e6165b7f92b6efec2dd90fe2bb115245 Mon Sep 17 00:00:00 2001 From: Viyom Date: Fri, 18 May 2018 18:22:35 +0200 Subject: [PATCH] tcp: Fix a compiler warning --- src/internet/model/tcp-prr-recovery.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internet/model/tcp-prr-recovery.cc b/src/internet/model/tcp-prr-recovery.cc index 3620ef497..ba724fd42 100644 --- a/src/internet/model/tcp-prr-recovery.cc +++ b/src/internet/model/tcp-prr-recovery.cc @@ -102,7 +102,7 @@ TcpPrrRecovery::DoRecovery (Ptr tcb, uint32_t lastAckedBytes, } else { - int limit; + int limit = static_cast (tcb->m_ssThresh - tcb->m_bytesInFlight); if (m_reductionBoundMode == CRB) { limit = m_prrDelivered - m_prrOut;