cec: new libCEC methods added to LibCecSharp. fixed some compiler warnings
[deb_libcec.git] / src / lib / devices / CECBusDevice.cpp
index 52d71df7f245ebf3365105d39a1b5e18f09eb0b0..b54e0a5c636e5a89ea56edb61c7f616c4689f179 100644 (file)
@@ -790,7 +790,7 @@ bool CCECBusDevice::SendKeypress(cec_user_control_code key, bool bWait /* = fals
     CLockObject lock(&m_transmitMutex);
     cec_command command;
     cec_command::Format(command, m_processor->GetLogicalAddress(), m_iLogicalAddress, CEC_OPCODE_USER_CONTROL_PRESSED);
-    command.parameters.PushBack(key);
+    command.parameters.PushBack((uint8_t)key);
 
     if (bWait)
     {