mirror of
https://github.com/libAthena/athena.git
synced 2025-12-10 22:17:49 +00:00
* Fix build
This commit is contained in:
@@ -29,7 +29,7 @@ namespace utility
|
||||
{
|
||||
bool isEmpty(atInt8* buf, atUint32 size)
|
||||
{
|
||||
return buf[0] == 0 && !memcmp(buf, buf + 1, size - 1);
|
||||
return !memcmp(buf, buf + 1, size - 1);
|
||||
}
|
||||
|
||||
atUint16 swapU16(atUint16 val )
|
||||
@@ -73,7 +73,7 @@ atInt64 swap64(atInt64 val)
|
||||
|
||||
bool isSystemBigEndian()
|
||||
{
|
||||
atUint8* test = (atUint8*)"\xFE\xFF";
|
||||
static atUint8* test = (atUint8*)"\xFE\xFF";
|
||||
return (*(atUint16*)test == 0xFEFF);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user