From ea171d5230156fc31b6499e499970c7335f43767 Mon Sep 17 00:00:00 2001 From: terminx Date: Sun, 4 Sep 2011 23:06:12 +0000 Subject: [PATCH] Fix crashes on 64-bit due to unintended address truncation on ptr vars git-svn-id: https://svn.eduke32.com/eduke32@2005 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/gamevars.c | 2 +- polymer/eduke32/source/gamevars.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/polymer/eduke32/source/gamevars.c b/polymer/eduke32/source/gamevars.c index 3f6f46518..756f99fcb 100644 --- a/polymer/eduke32/source/gamevars.c +++ b/polymer/eduke32/source/gamevars.c @@ -422,7 +422,7 @@ int32_t Gv_NewArray(const char *pszLabel, int32_t asize) return 1; } -int32_t Gv_NewVar(const char *pszLabel, int32_t lValue, uint32_t dwFlags) +int32_t Gv_NewVar(const char *pszLabel, intptr_t lValue, uint32_t dwFlags) { int32_t i, j; diff --git a/polymer/eduke32/source/gamevars.h b/polymer/eduke32/source/gamevars.h index 582f17a9f..9eb7ed323 100644 --- a/polymer/eduke32/source/gamevars.h +++ b/polymer/eduke32/source/gamevars.h @@ -83,7 +83,7 @@ int32_t __fastcall Gv_GetVar(register int32_t id,register int32_t iActor,registe int32_t __fastcall Gv_GetVarX(register int32_t id); int32_t Gv_GetVarByLabel(const char *szGameLabel,int32_t lDefault,int32_t iActor,int32_t iPlayer); int32_t Gv_NewArray(const char *pszLabel,int32_t asize); -int32_t Gv_NewVar(const char *pszLabel,int32_t lValue,uint32_t dwFlags); +int32_t Gv_NewVar(const char *pszLabel,intptr_t lValue,uint32_t dwFlags); int32_t Gv_ReadSave(int32_t fil,int32_t newbehav); void __fastcall A_ResetVars(register int32_t iActor); void __fastcall Gv_SetVar(register int32_t id,register int32_t lValue,register int32_t iActor,register int32_t iPlayer);