mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-23 15:40:39 +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
|
@ -3469,7 +3469,8 @@ nullquote:
|
||||||
if ((index < aGameArrays[lVarID].size)&&(index>=0))
|
if ((index < aGameArrays[lVarID].size)&&(index>=0))
|
||||||
{
|
{
|
||||||
OSD_Printf(OSDTEXT_GREEN "%s: L=%d %s[%d] =%d\n", keyw[g_tw], g_errorLineNum,
|
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]);
|
aGameArrays[lVarID].szLabel, index,
|
||||||
|
(int32_t)(m*aGameArrays[lVarID].plValues[index]));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -417,7 +417,7 @@ int32_t Gv_NewArray(const char *pszLabel, int32_t asize)
|
||||||
aGameArrays[i].szLabel=(char *)Bcalloc(MAXVARLABEL,sizeof(uint8_t));
|
aGameArrays[i].szLabel=(char *)Bcalloc(MAXVARLABEL,sizeof(uint8_t));
|
||||||
if (aGameArrays[i].szLabel != pszLabel)
|
if (aGameArrays[i].szLabel != pszLabel)
|
||||||
Bstrcpy(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].size=asize;
|
||||||
aGameArrays[i].bReset=0;
|
aGameArrays[i].bReset=0;
|
||||||
g_gameArrayCount++;
|
g_gameArrayCount++;
|
||||||
|
|
Loading…
Reference in a new issue