Merge: Missing a unboxing when compiling a call to `new NativeArray`
authorJean Privat <jean@pryen.org>
Sat, 23 May 2015 01:01:18 +0000 (21:01 -0400)
committerJean Privat <jean@pryen.org>
Sat, 23 May 2015 01:01:18 +0000 (21:01 -0400)
commit1cbdc9f53274ec2bb7530e06094535988ccd2ac7
tree855ff4ec31ad6a2a75dd02fd2d7b001c524be58a
parentad9aa308c6b6d9ba24531536c0ce900acf8eb853
parentaa6cce664df7621ee91e61aea69901364bd84492
Merge: Missing a unboxing when compiling a call to `new NativeArray`

In the following code,

~~~nit
var i
i = 4
var na = new NativeArray[Object](i)
~~~

the declaration type of `i` is `nullable Object`, so the C-type of `i` is `val*` (and not `int`).
Therefore, in the `new NativeArray`, it should be unboxed because the C signature expect a `int`.

Pull-Request: #1365
Reviewed-by: Alexis Laferrière <alexis.laf@xymus.net>
Reviewed-by: Alexandre Terrasa <alexandre@moz-code.org>
Reviewed-by: Lucas Bajolet <r4pass@hotmail.com>