Skip to content

Commit

Permalink
eql
Browse files Browse the repository at this point in the history
  • Loading branch information
ahorek committed Aug 26, 2023
1 parent ca7c71e commit c220f23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyArray.java
Original file line number Diff line number Diff line change
Expand Up @@ -3828,7 +3828,7 @@ public IRubyObject intersect_p(ThreadContext context, IRubyObject other) {

if (len <= SMALL_ARRAY_LEN && ary2.realLength <= SMALL_ARRAY_LEN) {
for (int i = 0; i < len; i++) {
if (ary2.include_p(context, elt(i)).isTrue()) return context.tru;
if (ary2.includesByEql(context, elt(i))) return context.tru;
}
return context.fals;
}
Expand Down

0 comments on commit c220f23

Please sign in to comment.