Fix compiler warning

git-svn-id: https://svn.eduke32.com/eduke32@6363 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
terminx 2017-07-18 20:52:36 +00:00
parent 494c778feb
commit bf18114d31

View file

@ -4701,7 +4701,6 @@ finish_qsprintf:
continue;
}
int const numElements = aGameArrays[arrayNum].size;
int const numBytes = Gv_GetArrayAllocSize(arrayNum);
switch (aGameArrays[arrayNum].flags & GAMEARRAY_TYPE_MASK)
@ -4709,7 +4708,8 @@ finish_qsprintf:
case 0:
#ifdef BITNESS64
{
int32_t * const pArray = (int32_t *)Xmalloc(numBytes);
int const numElements = aGameArrays[arrayNum].size;
int32_t *const pArray = (int32_t *)Xmalloc(numBytes);
for (bssize_t k = 0; k < numElements; k++)
pArray[k] = Gv_GetArrayValue(arrayNum, k);