fix a couple low hanging 64 bit portability issues

This commit is contained in:
DarthArgus
2014-10-28 08:17:16 -07:00
parent 075c070adc
commit 31fc7fe30c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
View File
@@ -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)