This commit is contained in:
Matej Sekoranja
2011-09-20 17:51:37 +02:00
8 changed files with 71 additions and 69 deletions

View File

@@ -274,7 +274,7 @@ namespace epics {
// second byte version - major/minor nibble
int8 magic = receiveBuffer->getByte();
int8 version = receiveBuffer->getByte();
if(unlikely((magic != CA_MAGIC) || (((unsigned int8)version) >> 4)!=CA_MAJOR_PROTOCOL_REVISION))
if(unlikely((magic != CA_MAGIC) || (((uint8_t)version) >> 4)!=CA_MAJOR_PROTOCOL_REVISION))
return false;
// only data for UDP