mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-07 19:36:21 +00:00
TONY: Bugfix for OFFSETOF macro on 64-bit systems
This commit is contained in:
parent
35a7e79614
commit
220e945d67
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user