Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix thinko in block migration predicate check.
  • Loading branch information
jnthn committed Apr 28, 2015
1 parent 4a8a61f commit 709b77d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Perl6/Actions.nqp
Expand Up @@ -5047,7 +5047,7 @@ Compilation unit '$file' contained the following violations:
}
elsif (nqp::istype(@decls[$i], QAST::Stmt) || nqp::istype(@decls[$i], QAST::Stmts)) &&
nqp::istype(@decls[$i][0], QAST::Block) {
if !$predicate || $predicate(@decls[$i]) {
if !$predicate || $predicate(@decls[$i][0]) {
$to[0].push(@decls[$i][0]);
@decls[$i][0] := QAST::Op.new( :op('null') );
}
Expand Down

0 comments on commit 709b77d

Please sign in to comment.