make the edict macros consistent in return type

This commit is contained in:
Bill Currie 2007-04-09 08:55:05 +00:00 committed by Jeff Teunissen
parent a9678f1c06
commit 59498cd5e7
1 changed files with 1 additions and 1 deletions

View File

@ -245,7 +245,7 @@ void ED_EntityParseFunction (progs_t *pr);
#define PR_edicts(p) ((byte *) *(p)->edicts)
#define NEXT_EDICT(p,e) ((edict_t *) ((byte *) e + (p)->pr_edict_size))
#define EDICT_TO_PROG(p,e) ((long) ((byte *) (e) - PR_edicts (p)))
#define EDICT_TO_PROG(p,e) ((pr_int_t)(intptr_t)((byte *)(e) - PR_edicts (p)))
#define PROG_TO_EDICT(p,e) ((edict_t *) (PR_edicts (p) + (e)))
#define NUM_FOR_BAD_EDICT(p,e) (EDICT_TO_PROG (p, e) / (p)->pr_edict_size)
#ifndef PR_PARANOID_PROGS