From 94d6ef126f64e160a06dc8115d862a60ed25681e Mon Sep 17 00:00:00 2001 From: Aleric Inglewood Date: Sun, 22 Jan 2012 01:56:35 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20compiler=20error=20on=2064-bit:=20error:?= =?UTF-8?q?=20cast=20from=20=E2=80=98char*=E2=80=99=20to=20=E2=80=98U32=20?= =?UTF-8?q?{aka=20unsigned=20int}=E2=80=99=20loses=20precision?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- indra/llcommon/llmemory.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/indra/llcommon/llmemory.h b/indra/llcommon/llmemory.h index d54d28ea6..4f5bb2c38 100644 --- a/indra/llcommon/llmemory.h +++ b/indra/llcommon/llmemory.h @@ -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 \ No newline at end of file +#endif