Fixed striped auto pointer

This commit is contained in:
drmortalwombat 2023-10-18 20:26:11 +02:00
parent 0f5e933002
commit f7d6b52074
2 changed files with 3 additions and 1 deletions

View File

@ -2890,6 +2890,8 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateExpression(Declaration*
mErrors->Error(exp->mLocation, EERR_INCOMPATIBLE_OPERATOR, "Not a pointer type"); mErrors->Error(exp->mLocation, EERR_INCOMPATIBLE_OPERATOR, "Not a pointer type");
else if (vl.mType->mStride != 1) else if (vl.mType->mStride != 1)
vl = Dereference(proc, exp, block, vl, 0); vl = Dereference(proc, exp, block, vl, 0);
else
return ExValue(vl.mType->mBase, vl.mTemp, vl.mReference + 1);
return ExValue(vl.mType->mBase, vl.mTemp, 1); return ExValue(vl.mType->mBase, vl.mTemp, 1);
case TK_BINARY_AND: case TK_BINARY_AND:
{ {

View File

@ -42022,7 +42022,7 @@ void NativeCodeProcedure::Compile(InterCodeProcedure* proc)
{ {
mInterProc = proc; mInterProc = proc;
CheckFunc = !strcmp(mInterProc->mIdent->mString, "cursor_joy_exit"); CheckFunc = !strcmp(mInterProc->mIdent->mString, "enemies_move_show");
int nblocks = proc->mBlocks.Size(); int nblocks = proc->mBlocks.Size();
tblocks = new NativeCodeBasicBlock * [nblocks]; tblocks = new NativeCodeBasicBlock * [nblocks];