summary refs log tree commit diff stats
path: root/rod/ccgexprs.nim
diff options
context:
space:
mode:
Diffstat (limited to 'rod/ccgexprs.nim')
-rwxr-xr-xrod/ccgexprs.nim7
1 files changed, 2 insertions, 5 deletions
diff --git a/rod/ccgexprs.nim b/rod/ccgexprs.nim
index aa6ec2ed0..ecff707ae 100755
--- a/rod/ccgexprs.nim
+++ b/rod/ccgexprs.nim
@@ -39,9 +39,6 @@ proc getStrLit(m: BModule, s: string): PRope =
        [result, makeCString(s), ToRope(len(s))])
 
 proc genLiteral(p: BProc, v: PNode, ty: PType): PRope = 
-  var 
-    f: biggestFloat
-    id: int
   if ty == nil: internalError(v.info, "genLiteral: ty is nil")
   case v.kind
   of nkCharLit..nkInt64Lit: 
@@ -69,7 +66,7 @@ proc genLiteral(p: BProc, v: PNode, ty: PType): PRope =
     result = toRope("0")
   of nkStrLit..nkTripleStrLit: 
     if skipTypes(ty, abstractVarRange).kind == tyString: 
-      id = NodeTableTestOrSet(p.module.dataCache, v, gid)
+      var id = NodeTableTestOrSet(p.module.dataCache, v, gid)
       if id == gid: 
         # string literal not found in the cache:
         useMagic(p.module, "NimStringDesc")
@@ -79,7 +76,7 @@ proc genLiteral(p: BProc, v: PNode, ty: PType): PRope =
     else: 
       result = makeCString(v.strVal)
   of nkFloatLit..nkFloat64Lit: 
-    f = v.floatVal
+    var f = v.floatVal
     if f != f: 
       result = toRope("NAN")
     elif f == 0.0: 
kkartik/mu/blame/054dilated_reagent.cc?h=main&id=61286c8d694f94d41fae7ac8b4c6ec2c6945b7bc'>^
8619c618 ^
d18d1d3d ^




a796831f ^



a796831f ^

21c27706 ^
a796831f ^
1f7e3c05 ^
79eef536 ^
21c27706 ^
79eef536 ^
a796831f ^


































d5f89e0f ^
a796831f ^




4ad0f652 ^
a796831f ^


08cf048f ^
79eef536 ^
b74443e5 ^
eb4eecea ^
a17f9186 ^
79eef536 ^
a17f9186 ^
a796831f ^


ae256ea1 ^
f3760b0f ^
b69daf78 ^
795f5244 ^
a796831f ^
4f32f024 ^
a796831f ^



79eef536 ^
a796831f ^
a072f674 ^
eb4eecea ^
a072f674 ^

a796831f ^

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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127