Skip to content

Commit

Permalink
Need to first make it a Set before making it a Mix
Browse files Browse the repository at this point in the history
E.g. turning a Hash to a Mix assumes numeric values for the keys in the
hash.  We shouldn't do this.  Spotted by Norman Gaywood++ on perl6-users.
  • Loading branch information
lizmat committed Nov 23, 2017
1 parent 7939014 commit eacf9b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/set_difference.pm
Expand Up @@ -141,7 +141,7 @@ multi sub infix:<(-)>(**@p) {
nqp::create(Rakudo::Internals::IterationSet)
),
nqp::unless( # something else, Mix it!
$p.Mix.RAW-HASH,
$p.Set.Mix.RAW-HASH,
nqp::create(Rakudo::Internals::IterationSet)
)
)),
Expand Down

0 comments on commit eacf9b2

Please sign in to comment.