Skip to content

Commit

Permalink
fix set ops
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Nov 5, 2024
1 parent 15b6396 commit 4f1a747
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/ccgexprs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -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)):
Expand Down

0 comments on commit 4f1a747

Please sign in to comment.