Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Feb 13, 2025
1 parent 0769b86 commit cdcccdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/org/jruby/RubyBignum.java
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public static long big2ulong(RubyBignum value) {

public static long big2ulong(Ruby runtime, BigInteger big) {
if (big.compareTo(BigInteger.ZERO) < 0 || big.compareTo(ULONG_MAX) > 0) {
throw runtime.newRangeError("bignum out of range for 'ulong'");
throw runtime.newRangeError("bignum out of range of unsigned long");
}

return big.longValue();
Expand Down

0 comments on commit cdcccdb

Please sign in to comment.