nitcc: fix `Automaton::trim`
authorJean Privat <jean@pryen.org>
Tue, 21 Jun 2016 17:45:32 +0000 (13:45 -0400)
committerJean Privat <jean@pryen.org>
Thu, 23 Jun 2016 20:19:07 +0000 (16:19 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/nitcc/src/autom.nit

index dd57b52..ac69b3b 100644 (file)
@@ -360,8 +360,8 @@ class Automaton
 
                # Remove their transitions
                for s in bads do
-                       for t in s.ins do t.delete
-                       for t in s.outs do t.delete
+                       for t in s.ins.to_a do t.delete
+                       for t in s.outs.to_a do t.delete
                end
 
                # Keep only the good stuff