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
@@ -1058,7 +1058,7 @@ private static void duckStep(ThreadContext context, Ruby runtime, IRubyObject fr
IRubyObject i = from;

CallSite cmpSite = sites(context).op_gt.call(context, step, step, RubyFixnum.newFixnum(context.runtime, 0)).isTrue() ? sites(context).op_gt : sites(context).op_lt;
if(step.callMethod(context, "==", RubyFixnum.newFixnum(context.runtime, 0)).isTrue()) {
if(sites(context).op_equals.call(context, step, step, RubyFixnum.newFixnum(context.runtime, 0)).isTrue()) {
cmpSite = sites(context).op_equals;
}

0 comments on commit 1a3f259

Please sign in to comment.