From: Lars Op den Kamp Date: Thu, 21 Jun 2012 14:34:38 +0000 (+0200) Subject: fixed compiler warning in CCECCommandHandler X-Git-Tag: upstream/2.2.0~1^2~22^2^2~24 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=29c4a2d18300bcbc9e1c597a50f8d3f534590103;p=deb_libcec.git fixed compiler warning in CCECCommandHandler --- diff --git a/src/lib/implementations/CECCommandHandler.cpp b/src/lib/implementations/CECCommandHandler.cpp index f99d4c0..e06eb2b 100644 --- a/src/lib/implementations/CECCommandHandler.cpp +++ b/src/lib/implementations/CECCommandHandler.cpp @@ -1141,7 +1141,7 @@ bool CCECCommandHandler::ActivateSource(bool bTransmitDelayedCommandsOnly /* = f { LIB_CEC->AddLog(CEC_LOG_DEBUG, "failed to make '%s' the active source. will retry later", m_busDevice->GetLogicalAddressName()); CLockObject lock(m_mutex); - m_iActiveSourcePending = GetTimeMs() + CEC_ACTIVE_SOURCE_SWITCH_RETRY_TIME_MS; + m_iActiveSourcePending = GetTimeMs() + (int64_t)CEC_ACTIVE_SOURCE_SWITCH_RETRY_TIME_MS; return false; } diff --git a/src/lib/implementations/CECCommandHandler.h b/src/lib/implementations/CECCommandHandler.h index 70ba309..b6be4e7 100644 --- a/src/lib/implementations/CECCommandHandler.h +++ b/src/lib/implementations/CECCommandHandler.h @@ -226,7 +226,7 @@ namespace CEC bool m_bOPTSendDeckStatusUpdateOnActiveSource; cec_vendor_id m_vendorId; CWaitForResponse *m_waitForResponse; - int m_iActiveSourcePending; + int64_t m_iActiveSourcePending; PLATFORM::CMutex m_mutex; }; };