Fixed striped auto pointer
This commit is contained in:
parent
0f5e933002
commit
f7d6b52074
|
@ -2890,6 +2890,8 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateExpression(Declaration*
|
|||
mErrors->Error(exp->mLocation, EERR_INCOMPATIBLE_OPERATOR, "Not a pointer type");
|
||||
else if (vl.mType->mStride != 1)
|
||||
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);
|
||||
case TK_BINARY_AND:
|
||||
{
|
||||
|
|
|
@ -42022,7 +42022,7 @@ void NativeCodeProcedure::Compile(InterCodeProcedure* proc)
|
|||
{
|
||||
mInterProc = proc;
|
||||
|
||||
CheckFunc = !strcmp(mInterProc->mIdent->mString, "cursor_joy_exit");
|
||||
CheckFunc = !strcmp(mInterProc->mIdent->mString, "enemies_move_show");
|
||||
|
||||
int nblocks = proc->mBlocks.Size();
|
||||
tblocks = new NativeCodeBasicBlock * [nblocks];
|
||||
|
|
Loading…
Reference in New Issue