cec: fix segfault on exit
[deb_libcec.git] / src / lib / platform / threads.cpp
index 8933a21baf0881a06ea2ed5eb07768fbf28c7dfa..7c5b6ce4ed716de8cda00689de685482fca57eda 100644 (file)
@@ -120,7 +120,7 @@ void CCondition::Sleep(int iTimeout)
   CCondition w;
   CMutex m;
   CLockObject lock(&m);
-  w.Wait(&m, iTimeout);
+  w.Wait(&m, int64_t(iTimeout));
 }
 
 CThread::CThread(void) :