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
@@ -1372,7 +1372,7 @@ public static boolean fixable(double f) {

// MRI: macro POSFIXABLE, RB_POSFIXABLE
public static boolean posFixable(double f) {
return f < RubyFixnum.MAX + 1;
return f <= RubyFixnum.MAX;
}

// MRI: macro NEGFIXABLE, RB_NEGFIXABLE

0 comments on commit 7458b8c

Please sign in to comment.