From f81c192b3a7eb13330b37cba4b130a8c0ff3c6e4 Mon Sep 17 00:00:00 2001 From: Dave Chapman Date: Tue, 28 Mar 2006 19:04:48 +0000 Subject: [PATCH] More 64-bit fixes. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@9322 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/doom/p_saveg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/plugins/doom/p_saveg.c b/apps/plugins/doom/p_saveg.c index b1b4b934ba..1b73593879 100644 --- a/apps/plugins/doom/p_saveg.c +++ b/apps/plugins/doom/p_saveg.c @@ -269,7 +269,7 @@ void P_ThinkerToIndex(void) number_of_thinkers = 0; for (th = thinkercap.next ; th != &thinkercap ; th=th->next) if (th->function == P_MobjThinker) - th->prev = (thinker_t *) ++number_of_thinkers; + th->prev = (thinker_t *)(long)(++number_of_thinkers); } // phares 9/13/98: Moved this code outside of P_ArchiveThinkers so the @@ -788,7 +788,7 @@ void P_UnArchiveSpecials (void) door->sector = §ors[(unsigned long)door->sector]; //jff 1/31/98 unarchive line remembered by door as well - door->line = (unsigned long)door->line!=-1? &lines[(unsigned long)door->line] : NULL; + door->line = (long)door->line!=-1? &lines[(unsigned long)door->line] : NULL; door->sector->ceilingdata = door; //jff 2/22/98 door->thinker.function = T_VerticalDoor;