Changed types from fixed width types in stdint to language primitive types guaranteed to be at least as big.

This commit is contained in:
Jason Watkins
2015-04-16 10:13:18 -07:00
parent 4fdc6939c8
commit 1a3f658774
8 changed files with 72 additions and 74 deletions

View File

@@ -20,13 +20,13 @@ namespace XPC
return m;
}
std::uint32_t Message::GetMagicNumber()
unsigned long Message::GetMagicNumber()
{
if (size < 4)
{
return 0;
}
return *((std::uint32_t*)buffer);
return *((unsigned long*)buffer);
}
std::string Message::GetHead()
@@ -38,7 +38,7 @@ namespace XPC
return std::string((char*)buffer, 4);
}
const std::uint8_t* Message::GetBuffer()
const unsigned char* Message::GetBuffer()
{
if (size == 0)
{