unsigned int8 replaced with uint8_t for windows build
This commit is contained in:
@@ -32,7 +32,7 @@ namespace epics {
|
||||
const int8 CA_UNKNOWN_MINOR_PROTOCOL_REVISION = 0;
|
||||
|
||||
/** CA version signature (e.g. 0x50). */
|
||||
const int8 CA_VERSION = ((unsigned int8)CA_MAJOR_PROTOCOL_REVISION<<4)|CA_MINOR_PROTOCOL_REVISION;
|
||||
const int8 CA_VERSION = ((uint8_t)CA_MAJOR_PROTOCOL_REVISION<<4)|CA_MINOR_PROTOCOL_REVISION;
|
||||
|
||||
/** CA protocol port base. */
|
||||
const int32 CA_PORT_BASE = 5056;
|
||||
|
||||
@@ -554,7 +554,7 @@ namespace epics {
|
||||
// second byte version - major/minor nibble
|
||||
int8 magic = _socketBuffer->getByte();
|
||||
_version = _socketBuffer->getByte();
|
||||
if((magic != CA_MAGIC) || (((unsigned int8)_version) >> 4)!=CA_MAJOR_PROTOCOL_REVISION)
|
||||
if((magic != CA_MAGIC) || (((uint8_t)_version) >> 4)!=CA_MAJOR_PROTOCOL_REVISION)
|
||||
{
|
||||
// error... disconnect
|
||||
LOG(
|
||||
|
||||
@@ -263,7 +263,7 @@ namespace epics {
|
||||
// second byte version - major/minor nibble
|
||||
int8 magic = receiveBuffer->getByte();
|
||||
int8 version = receiveBuffer->getByte();
|
||||
if((magic != CA_MAGIC) || (((unsigned int8)version) >> 4)!=CA_MAJOR_PROTOCOL_REVISION)
|
||||
if((magic != CA_MAGIC) || (((uint8_t)version) >> 4)!=CA_MAJOR_PROTOCOL_REVISION)
|
||||
return false;
|
||||
|
||||
// only data for UDP
|
||||
|
||||
Reference in New Issue
Block a user