This commit is contained in:
Irmen de Jong
2023-03-04 14:14:01 +01:00
parent b3b380964c
commit fd269453a4
7 changed files with 20 additions and 11 deletions

View File

@ -31,7 +31,7 @@ internal class AstOnetimeTransforms(private val program: Program, private val op
// note: The CodeDesugarer already does something similar, but that is meant ONLY to take
// into account the case where the index value is a word type.
// The replacement here is to fix missing cases in the 6502 codegen.
// TODO make the 6502 codegen better so this work around can be removed
// TODO make the 6502 codegen better so this workaround can be removed
val arrayVar = arrayIndexedExpression.arrayvar.targetVarDecl(program)
if(arrayVar!=null && arrayVar.datatype == DataType.UWORD) {
if(parent is AssignTarget) {