mirror of
https://bitbucket.org/seefoe/src.git
synced 2026-09-11 21:45:09 -04:00
fix a couple low hanging 64 bit portability issues
This commit is contained in:
+1
-1
@@ -345,7 +345,7 @@ ByteStream::Data *ByteStream::Data::getNewData()
|
||||
|
||||
void ByteStream::Data::releaseOldData(ByteStream::Data *oldData)
|
||||
{
|
||||
assert(reinterpret_cast<unsigned int>(oldData) != 0xefefefefu);
|
||||
assert(reinterpret_cast<long>(oldData) != 0xefefefefu);
|
||||
|
||||
if (oldData->size > 4096)
|
||||
delete oldData;
|
||||
|
||||
+1
-1
@@ -55,7 +55,7 @@ inline unsigned int RoundUpToMultipleOf(unsigned int n, unsigned int m)
|
||||
template <class T>
|
||||
inline bool IsAligned(const void *p)
|
||||
{
|
||||
return (unsigned int)p % sizeof(T) == 0;
|
||||
return (uintptr_t)p % sizeof(T) == 0;
|
||||
}
|
||||
|
||||
inline bool CheckEndianess(bool highFirst)
|
||||
|
||||
Reference in New Issue
Block a user