aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2012-09-05 22:32:02 +1000
committerPaul Gilbert2012-09-05 22:32:02 +1000
commit220e945d6746ce22c655b2893f7ce0c001d811a6 (patch)
treeb838f361deea650d89da319085e48b4674b2b299 /engines
parent35a7e79614673509870ad9421020e34fccbede71 (diff)
downloadscummvm-rg350-220e945d6746ce22c655b2893f7ce0c001d811a6.tar.gz
scummvm-rg350-220e945d6746ce22c655b2893f7ce0c001d811a6.tar.bz2
scummvm-rg350-220e945d6746ce22c655b2893f7ce0c001d811a6.zip
TONY: Bugfix for OFFSETOF macro on 64-bit systems
Diffstat (limited to 'engines')
-rw-r--r--engines/tony/mpal/memory.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/tony/mpal/memory.cpp b/engines/tony/mpal/memory.cpp
index 428c07b3b7..78b036e657 100644
--- a/engines/tony/mpal/memory.cpp
+++ b/engines/tony/mpal/memory.cpp
@@ -64,7 +64,7 @@ void *MemoryManager::alloc(uint32 size, uint flags) {
return &item->_data[0];
}
-#define OFFSETOF(type, field) ((unsigned long) &(((type *) 0)->field))
+#define OFFSETOF(type, field) ((size_t) &(((type *) 0)->field))
/**
* Returns a reference to the MemoryItem for a gien byte pointer