From 3ff6354a7c7c04ffda21ce6f20ee77788659352c Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Thu, 25 Mar 2010 19:11:17 +0100 Subject: Bugfix: code generation bug that affected dialogs.nim --- rod/ccgexprs.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rod') 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) -- cgit 1.4.1-2-gfad0 mmit This repository contains the Nim compiler, Nim's stdlib, tools, and documentation. (mirror)ahoang <ahoang@tilde.institute>
summary refs log tree commit diff stats
path: root/tests/ccgbugs/tobjconstr_outoforder.nim
blob: 846a753d5e6fa0732407b6bd915edfaa45034c62 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38