diff --git a/polymer/eduke32/source/gameexec.c b/polymer/eduke32/source/gameexec.c index 89bbb1654..be32e08b4 100644 --- a/polymer/eduke32/source/gameexec.c +++ b/polymer/eduke32/source/gameexec.c @@ -3468,8 +3468,9 @@ nullquote: index=Gv_GetVarX(*insptr++); if ((index < aGameArrays[lVarID].size)&&(index>=0)) { - OSD_Printf(OSDTEXT_GREEN "%s: L=%d %s[%d] =%d\n",keyw[g_tw],g_errorLineNum, - aGameArrays[lVarID].szLabel,index,m*aGameArrays[lVarID].plValues[index]); + OSD_Printf(OSDTEXT_GREEN "%s: L=%d %s[%d] =%d\n", keyw[g_tw], g_errorLineNum, + aGameArrays[lVarID].szLabel, index, + (int32_t)(m*aGameArrays[lVarID].plValues[index])); continue; } else diff --git a/polymer/eduke32/source/gamevars.c b/polymer/eduke32/source/gamevars.c index 4afed0887..8cc8eb75e 100644 --- a/polymer/eduke32/source/gamevars.c +++ b/polymer/eduke32/source/gamevars.c @@ -417,7 +417,7 @@ int32_t Gv_NewArray(const char *pszLabel, int32_t asize) aGameArrays[i].szLabel=(char *)Bcalloc(MAXVARLABEL,sizeof(uint8_t)); if (aGameArrays[i].szLabel != pszLabel) Bstrcpy(aGameArrays[i].szLabel,pszLabel); - aGameArrays[i].plValues=(int32_t *)Bcalloc(asize,sizeof(int32_t)); + aGameArrays[i].plValues=(intptr_t *)Bcalloc(asize,sizeof(int32_t)); aGameArrays[i].size=asize; aGameArrays[i].bReset=0; g_gameArrayCount++;