-
-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Currently, deleting a key from a nqp::iterator of an nqp::hash and then continuing iterating over the hash, may cause segfaults. Prevent that situation by letting the BagHash.kv/pairs/values methods run on an iterator on a pre-made list of keys, rather than directly on the nqp::hash iterator. Deleting can happen if the value of a key from a BagHash is set to 0: my %b is BagHash = <a b b c c c> dd %b; # ("b"=>2,"c"=>3,"a"=>1).BagHash $_ = 0 for %b.values; dd %b; # ().BagHash
- Loading branch information
Showing
1 changed file
with
61 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters