Skip to content

Commit

Permalink
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -907,12 +907,12 @@ public int compare(long a, RubyBignum b) {
}

@Specialization(guards = {
"!isInteger(arguments[1])",
"!isLong(arguments[1])",
"!isDouble(arguments[1])",
"!isRubyBignum(arguments[1])"})
public RubyNilClass compare(Object a, Object b) {
return nil();
"!isInteger(arguments[1])",
"!isLong(arguments[1])",
"!isDouble(arguments[1])",
"!isRubyBignum(arguments[1])"})
public Object compare(VirtualFrame frame, Object a, Object b) {
return ruby(frame, "begin; b, a = math_coerce(other, :compare_error); a <=> b; rescue ArgumentError; nil; end", "other", b);
}

}

0 comments on commit f4a4d68

Please sign in to comment.