Skip to content

Commit

Permalink
Any (<=) Any should always be True, not False
Browse files Browse the repository at this point in the history
Unlike Any (<) Any is always False.  Caught while overhauling subset
tests.  This e.g. fixes set() (<=) SetHash.new.  This is *not* the
same cod path as set() (<=) set(), as that will return True based on
the fact that the nqp::eqaddr() test fires.
  • Loading branch information
lizmat committed Jul 12, 2017
1 parent c6cc1a7 commit 0cf3487
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Rakudo/QuantHash.pm
Expand Up @@ -1443,7 +1443,7 @@ my class Rakudo::QuantHash {
($braw := $b.RAW-HASH) && nqp::elems($braw),
# nothing in A, all elems in B should be >= 0
Rakudo::QuantHash.MIX-ALL-POSITIVE($braw),
False # nothing in A nor B
True # nothing in A nor B
)
)
)
Expand Down

0 comments on commit 0cf3487

Please sign in to comment.