Fix compiler error on 64-bit: error: cast from ‘char*’ to ‘U32 {aka unsigned int}’ loses precision

This commit is contained in:
Aleric Inglewood
2012-01-22 01:56:35 +01:00
parent 14f2df2a72
commit 94d6ef126f

View File

@@ -250,7 +250,7 @@ public:
{
bool operator()(const LLMemoryBlock* const& lhs, const LLMemoryBlock* const& rhs)
{
return (U32)lhs->getBuffer() < (U32)rhs->getBuffer();
return (size_t)lhs->getBuffer() < (size_t)rhs->getBuffer();
}
};
};
@@ -526,4 +526,4 @@ void LLPrivateMemoryPoolTester::operator delete[](void* addr)
#include "llsingleton.h"
#include "llsafehandle.h"
#endif
#endif