summaryrefslogtreecommitdiff
path: root/src/config/const.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/config/const.h')
-rw-r--r--src/config/const.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/config/const.h b/src/config/const.h
index f9baa4d7d..6557cb987 100644
--- a/src/config/const.h
+++ b/src/config/const.h
@@ -52,6 +52,13 @@
#define DEFTYPE_MAX CHAR_MAX
#endif
+/* pointer size fix which fixes several gcc warnings */
+#ifdef __64BIT__
+ #define __64BPTRSIZE(y) ((intptr)(y))
+#else
+ #define __64BPTRSIZE(y) (y)
+#endif
+
/* ATCMD_FUNC(mobinfo) HIT and FLEE calculations */
#ifdef RENEWAL
#define MOB_FLEE(mobdata) ( (mobdata)->lv + (mobdata)->status.agi + 100 )