fixed some pointer cast warnings on systems with 64 bit pointers (like AMD64)
svn-id: r10315
This commit is contained in:
parent
a1735e5502
commit
d9b0a79390
2 changed files with 3 additions and 3 deletions
|
@ -38,7 +38,7 @@
|
|||
// current reality (many of our complex structs are non-POD; for an explanation of
|
||||
// what POD means refer to http://www-cpd.fnal.gov/personal/wb/boost/ISOcxx/doc/POD.html)
|
||||
|
||||
#define OFFS(type,item) (((int)(&((type*)42)->type::item))-42)
|
||||
#define OFFS(type,item) (((long)(&((type*)42)->type::item))-42)
|
||||
#define SIZE(type,item) sizeof(((type*)42)->type::item)
|
||||
|
||||
// Any item that is still in use automatically gets a maxVersion equal to CURRENT_VER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue