From 13fe65cf466a75b8ae0af4781e872b2e3805e66e Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Tue, 11 Nov 2008 04:42:15 +0000 Subject: removed some warnings --- source/blender/blenlib/BLI_blenlib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/blenlib') 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 } -- cgit v1.2.3