separate_compiler: use the easier way to get a mparameter from a mclass
authorJean Privat <jean@pryen.org>
Fri, 26 Sep 2014 03:36:53 +0000 (23:36 -0400)
committerJean Privat <jean@pryen.org>
Fri, 26 Sep 2014 03:36:53 +0000 (23:36 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

src/compiler/separate_compiler.nit

index 84bc443..8c400f9 100644 (file)
@@ -1762,7 +1762,7 @@ class SeparateCompilerVisitor
        redef fun calloc_array(ret_type, arguments)
        do
                var mclass = self.get_class("ArrayCapable")
-               var ft = mclass.mclass_type.arguments.first.as(MParameterType)
+               var ft = mclass.mparameters.first
                var res = self.native_array_instance(ft, arguments[1])
                self.ret(res)
        end