repositories
/
deb_libcec.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
win32: fix build
[deb_libcec.git]
/
src
/
lib
/
AdapterCommunication.cpp
diff --git
a/src/lib/AdapterCommunication.cpp
b/src/lib/AdapterCommunication.cpp
index d3eecf45ea7f1045ef466ba38e1291f71f0186ca..74597665cfb98910423ea35f01562adce47c2dc6 100644
(file)
--- 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);
if (byte >= MSGESC && byte != MSGSTART)
{
push_back(MSGESC);
- push_back(
byte - ESCOFFSET
);
+ push_back(
(uint8_t) (byte - ESCOFFSET)
);
}
else
}
else
- push_back(byte);
+ push_back(
(uint8_t)
byte);
}
CAdapterCommunication::CAdapterCommunication(CLibCEC *controller) :
}
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))
{
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;
}
return false;
}