From 7f31f05684de44659d92a9f1a6c78e08f40c5fc1 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Tue, 8 Apr 2003 05:33:49 +0000 Subject: [PATCH] alpha compile fixes --- libs/gamecode/builtins/bi_hash.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/libs/gamecode/builtins/bi_hash.c b/libs/gamecode/builtins/bi_hash.c index 9bb1f358f..8779ee34a 100644 --- a/libs/gamecode/builtins/bi_hash.c +++ b/libs/gamecode/builtins/bi_hash.c @@ -165,7 +165,7 @@ bi_Hash_Add (progs_t *pr) { bi_hashtab_t *ht = &G_STRUCT (pr, bi_hashtab_t, 0); - R_INT (pr) = Hash_Add (ht->tab, (void *) P_INT (pr, 1)); + R_INT (pr) = Hash_Add (ht->tab, (void *) (long) P_INT (pr, 1)); } static void @@ -173,7 +173,7 @@ bi_Hash_AddElement (progs_t *pr) { bi_hashtab_t *ht = &G_STRUCT (pr, bi_hashtab_t, 0); - R_INT (pr) = Hash_Add (ht->tab, (void *) P_INT (pr, 1)); + R_INT (pr) = Hash_Add (ht->tab, (void *) (long) P_INT (pr, 1)); } static void @@ -189,7 +189,8 @@ bi_Hash_FindElement (progs_t *pr) { bi_hashtab_t *ht = &G_STRUCT (pr, bi_hashtab_t, 0); - R_INT (pr) = (long) Hash_FindElement (ht->tab, (void *) P_INT (pr, 1)); + R_INT (pr) = (long) Hash_FindElement (ht->tab, + (void *) (long) P_INT (pr, 1)); } static void @@ -218,7 +219,7 @@ bi_Hash_FindElementList (progs_t *pr) pr_type_t *pr_list; int count; - list = Hash_FindElementList (ht->tab, (void *) P_INT (pr, 1)); + list = Hash_FindElementList (ht->tab, (void *) (long) P_INT (pr, 1)); for (count = 1, l = list; *l; l++) count++; pr_list = PR_Zone_Malloc (pr, count * sizeof (pr_type_t)); @@ -241,7 +242,8 @@ bi_Hash_DelElement (progs_t *pr) { bi_hashtab_t *ht = &G_STRUCT (pr, bi_hashtab_t, 0); - R_INT (pr) = (long) Hash_DelElement (ht->tab, (void *) P_INT (pr, 1)); + R_INT (pr) = (long) Hash_DelElement (ht->tab, + (void *) (long) P_INT (pr, 1)); } static void @@ -249,7 +251,7 @@ bi_Hash_Free (progs_t *pr) { bi_hashtab_t *ht = &G_STRUCT (pr, bi_hashtab_t, 0); - Hash_Free (ht->tab, (void *) P_INT (pr, 1)); + Hash_Free (ht->tab, (void *) (long) P_INT (pr, 1)); } static void