From d9e45b08f3c5ed6d7665242df6bd6661ffbb8002 Mon Sep 17 00:00:00 2001 From: Alexandre Terrasa Date: Sat, 8 Dec 2012 19:28:07 -0500 Subject: [PATCH] nitg-s: add cast to remove c warnings Signed-off-by: Alexandre Terrasa --- src/separate_compiler.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/separate_compiler.nit b/src/separate_compiler.nit index 859cd29..06b95bc 100644 --- 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;") -- 1.7.9.5