Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix typed hash iteration.
  • Loading branch information
jnthn committed Jun 22, 2013
1 parent 7f05613 commit d02067f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/Hash.pm
Expand Up @@ -254,8 +254,8 @@ my class Hash {
my Mu $key;
while $iter {
$pair := nqp::shift($iter);
$key := nqp::atkey(nqp::getattr(self, $?CLASS, '$!keys'), $pair.key);
take Pair.new(:key($key), :value($pair.value));
$key := nqp::atkey(nqp::getattr(self, $?CLASS, '$!keys'), nqp::iterkey_s($pair));
take Pair.new(:key($key), :value(nqp::iterval($pair)));
}
Nil
}
Expand Down

0 comments on commit d02067f

Please sign in to comment.