From ea74788828dfaf5232ff85d324b985c089b6da4c Mon Sep 17 00:00:00 2001 From: ludwig Date: Sun, 19 Aug 2007 12:05:17 +0000 Subject: fix gcc 4.2 warnings about cast from pointer to integer (#3317) git-svn-id: svn://svn.icculus.org/quake3/trunk@1125 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/botlib/be_ai_goal.c | 2 +- code/botlib/be_ai_weap.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'code/botlib') diff --git a/code/botlib/be_ai_goal.c b/code/botlib/be_ai_goal.c index e240c44..3706519 100644 --- a/code/botlib/be_ai_goal.c +++ b/code/botlib/be_ai_goal.c @@ -134,7 +134,7 @@ typedef struct iteminfo_s int number; //number of the item info } iteminfo_t; -#define ITEMINFO_OFS(x) (int)&(((iteminfo_t *)0)->x) +#define ITEMINFO_OFS(x) (size_t)&(((iteminfo_t *)0)->x) fielddef_t iteminfo_fields[] = { diff --git a/code/botlib/be_ai_weap.c b/code/botlib/be_ai_weap.c index 56aabcc..50b0dea 100644 --- a/code/botlib/be_ai_weap.c +++ b/code/botlib/be_ai_weap.c @@ -48,8 +48,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA //#define DEBUG_AI_WEAP //structure field offsets -#define WEAPON_OFS(x) (int)&(((weaponinfo_t *)0)->x) -#define PROJECTILE_OFS(x) (int)&(((projectileinfo_t *)0)->x) +#define WEAPON_OFS(x) (size_t)&(((weaponinfo_t *)0)->x) +#define PROJECTILE_OFS(x) (size_t)&(((projectileinfo_t *)0)->x) //weapon definition // bk001212 - static static fielddef_t weaponinfo_fields[] = -- cgit v1.2.3