Bugfix: code generation bug that affected dialogs.nim
This commit is contained in:
parent
a8f6d307a9
commit
3ff6354a7c
4 changed files with 13 additions and 2 deletions
|
|
@ -63,7 +63,7 @@ proc genLiteral(p: BProc, v: PNode, ty: PType): PRope =
|
|||
result = ropef("(($1) $2)", [getTypeDesc(p.module,
|
||||
skipTypes(ty, abstractVarRange)), intLiteral(v.intVal)])
|
||||
of nkNilLit:
|
||||
result = toRope("0")
|
||||
result = toRope("NIM_NIL")
|
||||
of nkStrLit..nkTripleStrLit:
|
||||
if skipTypes(ty, abstractVarRange).kind == tyString:
|
||||
var id = NodeTableTestOrSet(p.module.dataCache, v, gid)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue