Skip to content

Commit

Permalink
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
@@ -50,6 +50,7 @@ public abstract class BignumNodes {
}

public static RubyBasicObject createRubyBignum(RubyClass rubyClass, BigInteger value) {
assert value.compareTo(LONG_MIN) < 0 || value.compareTo(LONG_MAX) > 0 : String.format("%s not in Bignum range", value);
return new RubyBignum(rubyClass, BIGNUM_FACTORY.newInstance(value));
}

0 comments on commit a6491f1

Please sign in to comment.