Fix one ptr size mismatch and one format letter/arg mismatch on x86_64.

git-svn-id: https://svn.eduke32.com/eduke32@2671 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2012-05-18 21:40:20 +00:00
parent b40ec07d36
commit 8a4519324e
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -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++;