Fix wrong enum type check

This commit is contained in:
drmortalwombat 2023-07-03 16:44:47 +02:00
parent 6c7347310b
commit 1e9e426758

View File

@ -1074,7 +1074,7 @@ InterCodeGenerator::ExValue InterCodeGenerator::TranslateInline(Declaration* pro
block->Append(ins); block->Append(ins);
ExValue rv(rdec->mBase, ins->mDst.mTemp, 1); ExValue rv(rdec->mBase, ins->mDst.mTemp, 1);
if (ins->mDst.mType != DT_TYPE_REFERENCE) if (rdec->mBase->mType != DT_TYPE_REFERENCE)
rv = Dereference(proc, exp, block, rv); rv = Dereference(proc, exp, block, rv);
return rv; return rv;
} }