TONY: Bugfix for OFFSETOF macro on 64-bit systems

This commit is contained in:
Paul Gilbert 2012-09-05 22:32:02 +10:00
parent 35a7e79614
commit 220e945d67

View File

@ -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