Skip to content

Commit

Permalink
Missed one call to dbl2num.
Browse files Browse the repository at this point in the history
headius committed Apr 17, 2018

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent a0b93c1 commit 3b44e76
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
@@ -992,7 +992,7 @@ private boolean scanStepArgs(ThreadContext context, IRubyObject[] args, IRubyObj
}
desc = numStepNegative(context, runtime, step);
if (to.isNil()) {
newArgs[0] = to = desc ? RubyFloat.newFloat(runtime, Double.NEGATIVE_INFINITY) : doubleToInteger(runtime, Double.POSITIVE_INFINITY);
newArgs[0] = to = desc ? RubyFloat.newFloat(runtime, Double.NEGATIVE_INFINITY) : RubyFloat.newFloat(runtime, Double.POSITIVE_INFINITY);
}
return desc;
}

0 comments on commit 3b44e76

Please sign in to comment.