Bugfix: code generation bug that affected dialogs.nim

This commit is contained in:
Andreas Rumpf 2010-03-25 19:11:17 +01:00
commit 3ff6354a7c
4 changed files with 13 additions and 2 deletions

View file

@ -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)