summary refs log tree commit diff stats
path: root/rod
diff options
context:
space:
mode:
authorAndreas Rumpf <andreas@andreas-desktop>2010-03-25 19:11:17 +0100
committerAndreas Rumpf <andreas@andreas-desktop>2010-03-25 19:11:17 +0100
commit3ff6354a7c7c04ffda21ce6f20ee77788659352c (patch)
tree88cbc1f8ad209ba16de109f846654dbd556cf6b6 /rod
parenta8f6d307a9fa4a27f54734604620e1763a8eafa5 (diff)
downloadNim-3ff6354a7c7c04ffda21ce6f20ee77788659352c.tar.gz
Bugfix: code generation bug that affected dialogs.nim
Diffstat (limited to 'rod')
-rwxr-xr-xrod/ccgexprs.nim2
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)