From: Lars Op den Kamp Date: Wed, 7 Dec 2011 00:45:01 +0000 (+0100) Subject: cec: fixed compiler warning on win32 X-Git-Tag: upstream/2.2.0~1^2~44^2~15^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=701f753bb7d109d65f30b2bfcd2644e1366801bf;p=deb_libcec.git cec: fixed compiler warning on win32 --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index 1daa7b6..7a1dcad 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -1330,11 +1330,11 @@ void CCECBusScan::WaitUntilIdle(void) if (IsStopped()) return; - int64_t iWaitTime = 3000 - (GetTimeMs() - m_processor->GetLastTransmission()); + int32_t iWaitTime = 3000 - (int32_t)(GetTimeMs() - m_processor->GetLastTransmission()); while (iWaitTime > 0) { Sleep(iWaitTime); - iWaitTime = 3000 - (GetTimeMs() - m_processor->GetLastTransmission()); + iWaitTime = 3000 - (int32_t)(GetTimeMs() - m_processor->GetLastTransmission()); } }