diff --git a/polymer/eduke32/source/savegame.c b/polymer/eduke32/source/savegame.c index 31e71d3ef..6fc217af1 100644 --- a/polymer/eduke32/source/savegame.c +++ b/polymer/eduke32/source/savegame.c @@ -36,10 +36,11 @@ extern char *bitptr; // back_p==1: "small int" -> ptr // // mode: see enum in savegame.h -void G_Util_PtrToIdx(void *ptr, uint32_t len, const void *base, int32_t mode) +void G_Util_PtrToIdx(void *ptr, int32_t count, const void *base, int32_t mode) { - uint32_t i; - intptr_t *iptr = ptr, ibase = (intptr_t)base; + int32_t i; + intptr_t *iptr = ptr; + intptr_t ibase = (intptr_t)base; int32_t back_p = mode&P2I_BACK_BIT; int32_t onlynon0_p = mode&P2I_ONLYNON0_BIT; @@ -47,7 +48,7 @@ void G_Util_PtrToIdx(void *ptr, uint32_t len, const void *base, int32_t mode) // compatibility between 32- and 64-bit systems in the netplay. // REMEMBER to bump BYTEVERSION then. - for (i=0; i