From 09e8bbea03c72cfc21560f953561183b9d29be6a Mon Sep 17 00:00:00 2001 From: sapier Date: Sun, 4 May 2014 02:43:01 +0200 Subject: Fix numeric underflow on calculating window size adjustment --- src/connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/connection.cpp') diff --git a/src/connection.cpp b/src/connection.cpp index e6b763206..341333db9 100644 --- a/src/connection.cpp +++ b/src/connection.cpp @@ -716,7 +716,7 @@ void Channel::UpdateTimers(float dtime,bool legacy_peer) packet_too_late = current_packet_too_late; packets_successfull = current_packet_successfull; - if (current_bytes_transfered > (window_size*512/2)) + if (current_bytes_transfered > (unsigned int) (window_size*512/2)) { reasonable_amount_of_data_transmitted = true; } -- cgit v1.2.3