Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyRational.java
Original file line number Diff line number Diff line change
@@ -868,7 +868,7 @@ public IRubyObject op_round(ThreadContext context) {
@JRubyMethod(name = "round")
public IRubyObject op_round(ThreadContext context, IRubyObject n) {
IRubyObject b = op_roundCommonPre(context, n);
return op_roundCommonPost(context, ((RubyRational)f_mul(context, this, b)).op_round(context), n, b);
return op_roundCommonPost(context, ((RubyNumeric) f_mul(context, this, b)).round(), n, b);
}

/** nurat_to_f

0 comments on commit 95cea52

Please sign in to comment.