From c86c0b6b96c06b89a3dbcc40f4082a39d7b185aa Mon Sep 17 00:00:00 2001 From: Sven Hesse Date: Wed, 13 Oct 2010 11:22:19 +0000 Subject: SWORD25: Cast the pointer to unsigned long long ...Instead of to uint, which fails on my 64 bit system where pointers are 64 bit, but normal ints 32 bit wide. svn-id: r53409 --- engines/sword25/kernel/callbackregistry.h | 4 ++-- engines/sword25/kernel/objectregistry.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'engines') diff --git a/engines/sword25/kernel/callbackregistry.h b/engines/sword25/kernel/callbackregistry.h index 8671a932de..5dde8ba712 100644 --- a/engines/sword25/kernel/callbackregistry.h +++ b/engines/sword25/kernel/callbackregistry.h @@ -74,8 +74,8 @@ private: } }; struct CallbackPtr_Hash { - uint operator()(CallbackPtr x) const { - return (uint)x; + unsigned long long operator()(CallbackPtr x) const { + return (unsigned long long)x; } }; diff --git a/engines/sword25/kernel/objectregistry.h b/engines/sword25/kernel/objectregistry.h index 0f50b79b00..2f4cb9d3f7 100644 --- a/engines/sword25/kernel/objectregistry.h +++ b/engines/sword25/kernel/objectregistry.h @@ -136,8 +136,8 @@ protected: } }; struct ClassPointer_Hash { - uint operator()(const T *x) const { - return (uint)x; + unsigned long long operator()(const T *x) const { + return (unsigned long long)x; } }; -- cgit v1.2.3