diff options
author | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-25 19:11:17 +0100 |
---|---|---|
committer | Andreas Rumpf <andreas@andreas-desktop> | 2010-03-25 19:11:17 +0100 |
commit | 3ff6354a7c7c04ffda21ce6f20ee77788659352c (patch) | |
tree | 88cbc1f8ad209ba16de109f846654dbd556cf6b6 /rod | |
parent | a8f6d307a9fa4a27f54734604620e1763a8eafa5 (diff) | |
download | Nim-3ff6354a7c7c04ffda21ce6f20ee77788659352c.tar.gz |
Bugfix: code generation bug that affected dialogs.nim
Diffstat (limited to 'rod')
-rwxr-xr-x | rod/ccgexprs.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rod/ccgexprs.nim b/rod/ccgexprs.nim index 6eae842f2..2fbaf2d4a 100755 --- a/rod/ccgexprs.nim +++ b/rod/ccgexprs.nim @@ -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) |