X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterCommunication.cpp;h=74597665cfb98910423ea35f01562adce47c2dc6;hb=56701628bc0683330d679147aa857f4b92403daa;hp=d3eecf45ea7f1045ef466ba38e1291f71f0186ca;hpb=9511a8b1812eb840030fbbef72f0e9492e9fa688;p=deb_libcec.git diff --git a/src/lib/AdapterCommunication.cpp b/src/lib/AdapterCommunication.cpp index d3eecf4..7459766 100644 --- a/src/lib/AdapterCommunication.cpp +++ b/src/lib/AdapterCommunication.cpp @@ -93,10 +93,10 @@ void CCECAdapterMessage::push_escaped(int16_t byte) if (byte >= MSGESC && byte != MSGSTART) { push_back(MSGESC); - push_back(byte - ESCOFFSET); + push_back((uint8_t) (byte - ESCOFFSET)); } else - push_back(byte); + push_back((uint8_t) byte); } CAdapterCommunication::CAdapterCommunication(CLibCEC *controller) : @@ -260,7 +260,7 @@ bool CAdapterCommunication::Read(CCECAdapterMessage &msg, uint32_t iTimeout) uint8_t buf = 0; if (!m_inBuffer.Pop(buf)) { - if (!m_rcvCondition.Wait(&m_mutex, iTarget - iNow)) + if (!m_rcvCondition.Wait(&m_mutex, (uint32_t) (iTarget - iNow))) return false; }