diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-11-11 07:42:15 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-11-11 07:42:15 +0300 |
commit | 13fe65cf466a75b8ae0af4781e872b2e3805e66e (patch) | |
tree | d41a75b53fa5f39a5fa428a115524c3c5c1e118f /source/blender/blenlib/BLI_blenlib.h | |
parent | 8b32ad784b609cc131c498e6db7ec4a6bf784458 (diff) |
removed some warnings
Diffstat (limited to 'source/blender/blenlib/BLI_blenlib.h')
-rw-r--r-- | source/blender/blenlib/BLI_blenlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_blenlib.h b/source/blender/blenlib/BLI_blenlib.h index 4bbda9709d7..13d5b5fe829 100644 --- a/source/blender/blenlib/BLI_blenlib.h +++ b/source/blender/blenlib/BLI_blenlib.h @@ -416,7 +416,7 @@ void *BLI_pointer_from_int(int val); * @param member The name of a member field of @a strct * @retval The offset in bytes of @a member within @a strct */ -#define BLI_STRUCT_OFFSET(strct, member) ((int) &((strct*) 0)->member) +#define BLI_STRUCT_OFFSET(strct, member) ((int)(intptr_t) &((strct*) 0)->member) #ifdef __cplusplus } |