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/RubyNumeric.java
Original file line number Diff line number Diff line change
@@ -425,7 +425,7 @@ protected final IRubyObject[] getCoerced(ThreadContext context, IRubyObject othe
final IRubyObject $ex = context.getErrorInfo();
final IRubyObject result;
try {
result = sites(context).coerce.call(context, this, this);
result = sites(context).coerce.call(context, other, other, this);
}
catch (RaiseException e) { // e.g. NoMethodError: undefined method `coerce'
context.setErrorInfo($ex); // restore $!

0 comments on commit 221c6a9

Please sign in to comment.