use old for loop unpack syntax for bootstrapping
This commit is contained in:
parent
b2898cd254
commit
001835bdec
1 changed files with 1 additions and 1 deletions
|
|
@ -1986,7 +1986,7 @@ proc genEnumToStr(p: BProc, e: PNode, d: var TLoc) =
|
|||
const ToStringProcSlot = -4
|
||||
let t = e[1].typ.skipTypes(abstractInst)
|
||||
var toStrProc: PSym = nil
|
||||
for (idx, p) in t.methods:
|
||||
for idx, p in items(t.methods):
|
||||
if idx == ToStringProcSlot:
|
||||
toStrProc = p
|
||||
break
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue