cec: fixed compiler warning on win32
authorLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Wed, 7 Dec 2011 00:45:01 +0000 (01:45 +0100)
committerLars Op den Kamp <lars.opdenkamp@pulse-eight.com>
Wed, 7 Dec 2011 00:45:01 +0000 (01:45 +0100)
src/lib/CECProcessor.cpp

index 1daa7b60d2d8d421f879fa9b530ce07039725b1f..7a1dcad90a422eaa725500b5c4528c414703223d 100644 (file)
@@ -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());
   }
 }