Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Make %hash.pairs .value writable
Fixes RT #124640
  • Loading branch information
niner committed Sep 19, 2015
1 parent 0e0495e commit 0f699bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/core/Hash.pm
Expand Up @@ -467,7 +467,7 @@ my class Hash { # declared in BOOTSTRAP
method pull-one() {
if $!hash-iter {
my \tmp = nqp::shift($!hash-iter);
Pair.new(key => nqp::iterval(tmp), value => nqp::atkey($!storage, nqp::iterkey_s(tmp)));
Pair.new(nqp::iterval(tmp), nqp::atkey($!storage, nqp::iterkey_s(tmp)));
}
else {
IterationEnd
Expand Down
2 changes: 1 addition & 1 deletion src/core/Map.pm
Expand Up @@ -74,7 +74,7 @@ my class Map does Iterable does Associative { # declared in BOOTSTRAP
method pull-one() {
if $!hash-iter {
my \tmp = nqp::shift($!hash-iter);
Pair.new(key => nqp::iterkey_s(tmp), value => nqp::iterval(tmp))
Pair.new(nqp::iterkey_s(tmp), nqp::iterval(tmp))
}
else {
IterationEnd
Expand Down

0 comments on commit 0f699bb

Please sign in to comment.