nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e184e0
)
nitg-s: add cast to remove c warnings
author
Alexandre Terrasa
<alexandre@moz-code.org>
Sun, 9 Dec 2012 00:28:07 +0000
(19:28 -0500)
committer
Alexandre Terrasa
<alexandre@moz-code.org>
Sun, 9 Dec 2012 00:28:07 +0000
(19:28 -0500)
Signed-off-by: Alexandre Terrasa <alexandre@moz-code.org>
src/separate_compiler.nit
patch
|
blob
|
history
diff --git
a/src/separate_compiler.nit
b/src/separate_compiler.nit
index
859cd29
..
06b95bc
100644
(file)
--- a/
src/separate_compiler.nit
+++ b/
src/separate_compiler.nit
@@
-1217,7
+1217,7
@@
class SeparateCompilerVisitor
else if ntype isa MGenericType and ntype.need_anchor then
var buff = new Buffer
retrieve_anchored_livetype(ntype, buff)
- self.add("{type_struct} = livetypes_{ntype.mclass.c_name}{buff.to_s};")
+ self.add("{type_struct} = (struct type*)livetypes_{ntype.mclass.c_name}{buff.to_s};")
self.add("{cltype} = {type_struct}->color;")
self.add("{idtype} = {type_struct}->id;")
self.add("{is_nullable} = {type_struct}->is_nullable;")