Skip to content

Commit

Permalink
TONY: Bugfix for OFFSETOF macro on 64-bit systems
Browse files Browse the repository at this point in the history
  • Loading branch information
dreammaster committed Sep 5, 2012
1 parent 35a7e79 commit 220e945
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion engines/tony/mpal/memory.cpp
Expand Up @@ -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
Expand Down

0 comments on commit 220e945

Please sign in to comment.