From 8c0672a9b7854c0a766f11e4fe2e0cd2a2b0fca1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 5 Nov 2011 18:28:32 +0000 Subject: [PATCH] fix overflow in utp logging --- src/utp_stream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utp_stream.cpp b/src/utp_stream.cpp index 68f2e6a08..7ff642b80 100644 --- a/src/utp_stream.cpp +++ b/src/utp_stream.cpp @@ -2627,7 +2627,7 @@ bool utp_socket_impl::incoming_packet(char const* buf, int size , m_bytes_in_flight , 0.f // float(scaled_gain) , m_rtt.mean() - , int(m_cwnd * 1000 / (m_rtt.mean()?m_rtt.mean():50)) >> 16 + , int((m_cwnd * 1000 / (m_rtt.mean()?m_rtt.mean():50)) >> 16) , 0 , m_adv_wnd , packet_timeout()