Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix %a{5}:delete, as reported by psch
  • Loading branch information
lizmat committed Aug 4, 2014
1 parent 23c4ea2 commit 59fee83
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/Hash.pm
Expand Up @@ -136,11 +136,11 @@ my class Hash { # declared in BOOTSTRAP

proto method delete_key(|) { * }
multi method delete_key(Hash:U:) { Nil }
multi method delete_key($key) {
my Mu $val = self.at_key($key);
multi method delete_key(\key as Str) {
my Mu $val = self.at_key(key);
nqp::deletekey(
nqp::getattr(self, EnumMap, '$!storage'),
nqp::unbox_s($key)
nqp::unbox_s(key)
);
$val;
}
Expand Down

0 comments on commit 59fee83

Please sign in to comment.