1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix numeric underflow on calculating window size adjustment

This commit is contained in:
sapier 2014-05-04 02:43:01 +02:00
parent cfb26629bf
commit 09e8bbea03
2 changed files with 2 additions and 2 deletions

View file

@ -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;
}