nitcc_runtime: use an Array instead of a List for the DephIterator
authorJean Privat <jean@pryen.org>
Fri, 4 Dec 2015 18:49:31 +0000 (13:49 -0500)
committerJean Privat <jean@pryen.org>
Fri, 4 Dec 2015 18:49:31 +0000 (13:49 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/nitcc_runtime.nit

index e1aeb9a..ac75d8b 100644 (file)
@@ -419,7 +419,7 @@ end
 private class DephIterator
        super Iterator[Node]
 
-       var stack = new List[Iterator[nullable Node]]
+       var stack = new Array[Iterator[nullable Node]]
 
        init(i: Iterator[nullable Node]) is old_style_init do
                stack.push i