mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 06:32:37 +00:00
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:
parent
b40ec07d36
commit
8a4519324e
2 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue