nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5323899
)
nitcc: fix `Automaton::trim`
author
Jean Privat
<jean@pryen.org>
Tue, 21 Jun 2016 17:45:32 +0000
(13:45 -0400)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/contrib/nitcc/src/autom.nit
b/contrib/nitcc/src/autom.nit
index
dd57b52
..
ac69b3b
100644
(file)
--- a/
contrib/nitcc/src/autom.nit
+++ b/
contrib/nitcc/src/autom.nit
@@
-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