X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=progs.h;h=6992e5cb6c8d0c2898e7fbd5d2b3a3dc5862d30a;hp=b1578120abe589656c3eb3c72badcc1fe123847c;hb=9976ca010e51f14b9dfe4c5bc1f945344d3d9bf7;hpb=d8a802dfabee9fbabee8a3ff90a063abdcb6a4c6 diff --git a/progs.h b/progs.h index b1578120..6992e5cb 100644 --- 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)