projects
/
xonotic
/
darkplaces.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d8a802d
)
NUM_FOR_EDICT now casts to int so that it never returns a 64bit integer on 64bit...
author
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 14:04:05 +0000
(14:04 +0000)
committer
havoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Mon, 4 Oct 2004 14:04:05 +0000
(14:04 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4586
d7cf8633
-e32d-0410-b094-
e92efae38249
progs.h
patch
|
blob
|
history
diff --git
a/progs.h
b/progs.h
index b1578120abe589656c3eb3c72badcc1fe123847c..6992e5cb6c8d0c2898e7fbd5d2b3a3dc5862d30a 100644
(file)
--- a/
progs.h
+++ b/
progs.h
@@
-181,7
+181,7
@@
edict_t *EDICT_NUM_ERROR(int n, char *filename, int fileline);
#define EDICT_NUM_UNSIGNED(n) (((n) < sv.max_edicts) ? sv.edicts + (n) : EDICT_NUM_ERROR(n, __FILE__, __LINE__))
//int NUM_FOR_EDICT_ERROR(edict_t *e);
-#define NUM_FOR_EDICT(e) ((
edict_t *)(e) - sv.edicts
)
+#define NUM_FOR_EDICT(e) ((
int)((edict_t *)(e) - sv.edicts)
)
//int NUM_FOR_EDICT(edict_t *e);
#define NEXT_EDICT(e) ((e) + 1)