aboutsummaryrefslogtreecommitdiff
path: root/engines/sword25/kernel/objectregistry.h
diff options
context:
space:
mode:
authorMax Horn2010-10-13 10:51:20 +0000
committerMax Horn2010-10-13 10:51:20 +0000
commit85fa23afbe08d6296d716321d95214042d70f9ac (patch)
treef14d491c57cab5078a74c0561fbd38af1914103a /engines/sword25/kernel/objectregistry.h
parentb3c352d1fee37831408c43155cca91f3d8e42764 (diff)
downloadscummvm-rg350-85fa23afbe08d6296d716321d95214042d70f9ac.tar.gz
scummvm-rg350-85fa23afbe08d6296d716321d95214042d70f9ac.tar.bz2
scummvm-rg350-85fa23afbe08d6296d716321d95214042d70f9ac.zip
SWORD25: Get rid of kernel/bs_stdint.h
svn-id: r53405
Diffstat (limited to 'engines/sword25/kernel/objectregistry.h')
-rw-r--r--engines/sword25/kernel/objectregistry.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/engines/sword25/kernel/objectregistry.h b/engines/sword25/kernel/objectregistry.h
index dc702f2d75..0f50b79b00 100644
--- a/engines/sword25/kernel/objectregistry.h
+++ b/engines/sword25/kernel/objectregistry.h
@@ -37,7 +37,6 @@
#include "common/func.h"
#include "common/hashmap.h"
-#include "sword25/kernel/bs_stdint.h"
#include "sword25/kernel/common.h"
namespace Sword25 {
@@ -131,7 +130,6 @@ public:
}
protected:
- // FIXME: I'm not entirely sure my current hash function is legitimate
struct ClassPointer_EqualTo {
bool operator()(const T *x, const T *y) const {
return x == y;
@@ -139,7 +137,7 @@ protected:
};
struct ClassPointer_Hash {
uint operator()(const T *x) const {
- return static_cast<uint>((int64)x % ((int64)1 << sizeof(uint)));
+ return (uint)x;
}
};