Permalink
Browse files

JRUBY-4861: Bignum with small values can be created with String#to_i

Regression tests added to Rubyspec.
  • Loading branch information...
1 parent f5f9ce3 commit 9bbf8ec03ac323726bdc6a1cef4410ce1a32fd49 @vvs vvs committed Jun 11, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/org/jruby/util/ConvertBytes.java
@@ -607,7 +607,7 @@ private RubyInteger bigParse(int len, boolean sign) {
}
}
- return new RubyBignum(runtime, z);
+ return RubyBignum.bignorm(runtime, z);
}
public static class ERange extends RuntimeException {

0 comments on commit 9bbf8ec

Please sign in to comment.