Skip to content

Commit

Permalink
fix compilation after builder change
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Nov 3, 2024
1 parent 903015b commit 29ca632
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/ccgtypes.nim
Original file line number Diff line number Diff line change
Expand Up @@ -1505,7 +1505,7 @@ proc genEnumInfo(m: BModule; typ: PType, name: Rope; info: TLineInfo) =
name = enumArray,
elementType = constPtrType("char"),
len = typ.n.len):
m.s[cfsTypeInit1].add(enumNames)
m.s[cfsTypeInit1].add(extract(enumNames))
m.s[cfsTypeInit3].addForRangeExclusive(i = counter,
start = cIntValue(0),
bound = cIntValue(typ.n.len)):
Expand All @@ -1517,7 +1517,7 @@ proc genEnumInfo(m: BModule; typ: PType, name: Rope; info: TLineInfo) =
subscript(enumArray, counter))
m.s[cfsTypeInit3].addSubscriptAssignment(nodePtrs, counter,
cAddr(nodeLoc))
m.s[cfsTypeInit3].add(specialCases)
m.s[cfsTypeInit3].add(extract(specialCases))
let n = getNimNode(m)
m.s[cfsTypeInit3].addFieldAssignment(n, "len", typ.n.len)
m.s[cfsTypeInit3].addFieldAssignment(n, "kind", 0)
Expand Down

0 comments on commit 29ca632

Please sign in to comment.