Skip to content

Commit

Permalink
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -402,6 +402,11 @@ public boolean equal(double a, double b) {
return a == b;
}

@Specialization
public boolean equal(double a, boolean b) {
return false;
}

@Specialization(guards = "isRubyBignum(b)")
public boolean equal(double a, DynamicObject b) {
return a == Layouts.BIGNUM.getValue(b).doubleValue();

0 comments on commit d96ea8f

Please sign in to comment.