cec: fixed compiler warning on win32
[deb_libcec.git] / src / lib / adapter / USBCECAdapterCommunication.cpp
index 82c4252d27eb314d993c3178357cc18dfddc026e..09a3bb2029de81b4774f8c41294014c18398e29d 100644 (file)
@@ -974,7 +974,7 @@ bool CUSBCECAdapterCommunication::SendCommand(cec_adapter_messagecode msgCode, C
   CCECAdapterMessage *output = new CCECAdapterMessage;
 
   output->PushBack(MSGSTART);
-  output->PushEscaped(msgCode);
+  output->PushEscaped((uint8_t)msgCode);
   output->Append(params);
   output->PushBack(MSGEND);
   output->isTransmission = bIsTransmission;