From a808ee07d3d486f30050e5e8970844a16bccd08b Mon Sep 17 00:00:00 2001 From: Jupeyy Date: Thu, 1 Mar 2018 08:07:48 +0100 Subject: [PATCH] add accedentially removed cast --- src/engine/client/client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/engine/client/client.cpp b/src/engine/client/client.cpp index b0f714f57..8115a3a28 100644 --- a/src/engine/client/client.cpp +++ b/src/engine/client/client.cpp @@ -2871,7 +2871,7 @@ void CClient::Run() int64 TimeNowInMicroSeconds = (Now * 1000000ll) / time_freq(); int64 TimeLastInMicroSeconds = (LastTime * 1000000ll) / time_freq(); SleepTimeInMicroSeconds = (1000000ll / g_Config.m_ClRefreshRate) - (TimeNowInMicroSeconds - TimeLastInMicroSeconds); - thread_sleep(max(SleepTimeInMicroSeconds / 1000ll, 0)); + thread_sleep(max(SleepTimeInMicroSeconds / 1000ll, (int64)0)); Slept = true; } else if(g_Config.m_ClRefreshRate) @@ -2879,7 +2879,7 @@ void CClient::Run() int64 TimeNowInMicroSeconds = (Now * 1000000ll) / time_freq(); int64 TimeLastInMicroSeconds = (LastTime * 1000000ll) / time_freq(); SleepTimeInMicroSeconds = (1000000ll / g_Config.m_ClRefreshRate) - (TimeNowInMicroSeconds - TimeLastInMicroSeconds); - net_socket_read_wait(m_NetClient[0].m_Socket, max(SleepTimeInMicroSeconds, 0)); + net_socket_read_wait(m_NetClient[0].m_Socket, max(SleepTimeInMicroSeconds, (int64)0)); Slept = true; } if(Slept)