nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0295b7b
)
separate_compiler: use the easier way to get a mparameter from a mclass
author
Jean Privat
<jean@pryen.org>
Fri, 26 Sep 2014 03:36:53 +0000
(23:36 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/src/compiler/separate_compiler.nit
b/src/compiler/separate_compiler.nit
index
84bc443
..
8c400f9
100644
(file)
--- a/
src/compiler/separate_compiler.nit
+++ b/
src/compiler/separate_compiler.nit
@@
-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