nitg: use ctype instead of cname_blind in autobox
[nit.git] / src / global_compiler.nit
index a85f889..1a3d2c1 100644 (file)
@@ -274,7 +274,7 @@ class GlobalCompilerVisitor
                        end
                        self.add("{res} = BOX_{valtype.c_name}({value}); /* autobox from {value.mtype} to {mtype} */")
                        return res
-               else if value.mtype.cname_blind == "void*" and mtype.cname_blind == "void*" then
+               else if value.mtype.ctype == "void*" and mtype.ctype == "void*" then
                        return value
                else
                        # Bad things will appen!