diff --git a/compiler/ccgexprs.nim b/compiler/ccgexprs.nim index ce2705a3dce9..894fc1de682d 100644 --- a/compiler/ccgexprs.nim +++ b/compiler/ccgexprs.nim @@ -2459,7 +2459,7 @@ proc genSetOp(p: BProc, e: PNode, d: var TLoc, op: TMagic) = if d.k == locNone: d = getTemp(p, setType) let ri = rdLoc(i) let rd = rdLoc(d) - let ra = rdLoc(b) + let ra = rdLoc(a) let rb = rdLoc(b) p.s(cpsStmts).addForRangeExclusive(ri, cIntValue(0), cIntValue(size)): p.s(cpsStmts).addAssignmentWithValue(subscript(rd, ri)):