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
@@ -136,6 +136,11 @@ public Object mul(DynamicObject a, DynamicObject b) {
return fixnumOrBignum(Layouts.BIGNUM.getValue(a).multiply(Layouts.BIGNUM.getValue(b)));
}

@Specialization(guards = {"!isInteger(b)", "!isLong(b)", "!isDouble(b)", "!isRubyBignum(b)"})
public Object mul(VirtualFrame frame, DynamicObject a, Object b) {
return ruby(frame, "redo_coerced :*, other", "other", b);
}

}

@CoreMethod(names = {"/", "__slash__"}, required = 1)

0 comments on commit 5441536

Please sign in to comment.