diff options
Diffstat (limited to 'engines')
-rw-r--r-- | engines/sword25/kernel/callbackregistry.h | 4 | ||||
-rw-r--r-- | engines/sword25/kernel/objectregistry.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/sword25/kernel/callbackregistry.h b/engines/sword25/kernel/callbackregistry.h index 5dde8ba712..ddf5608446 100644 --- a/engines/sword25/kernel/callbackregistry.h +++ b/engines/sword25/kernel/callbackregistry.h @@ -74,8 +74,8 @@ private: } }; struct CallbackPtr_Hash { - unsigned long long operator()(CallbackPtr x) const { - return (unsigned long long)x; + uint operator()(CallbackPtr x) const { + return *(uint *)&x; } }; diff --git a/engines/sword25/kernel/objectregistry.h b/engines/sword25/kernel/objectregistry.h index 2f4cb9d3f7..3a27ba4942 100644 --- a/engines/sword25/kernel/objectregistry.h +++ b/engines/sword25/kernel/objectregistry.h @@ -136,8 +136,8 @@ protected: } }; struct ClassPointer_Hash { - unsigned long long operator()(const T *x) const { - return (unsigned long long)x; + uint operator()(const T *x) const { + return *(uint *)&x; } }; |