Skip to content

Commit

Permalink
fix const type issue, hopefully last one
Browse files Browse the repository at this point in the history
  • Loading branch information
metagn committed Nov 2, 2024
1 parent 23ecccc commit bc5a7a6
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 @@ -3234,7 +3234,7 @@ proc genConstHeader(m, q: BModule; p: BProc, sym: PSym) =
proc genConstDefinition(q: BModule; p: BProc; sym: PSym) =
# add a suffix for hcr - will later init the global pointer with this data
let actualConstName = if q.hcrOn: sym.loc.snippet & "_const" else: sym.loc.snippet
let td = getTypeDesc(q, sym.typ)
let td = constType(getTypeDesc(q, sym.typ))
var data = newBuilder("")
data.addDeclWithVisibility(Private):
data.addVarWithInitializer(Local, actualConstName, typ = td):
Expand Down

0 comments on commit bc5a7a6

Please sign in to comment.