summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-30 09:37:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-10-30 09:37:52 +0000
commitb8aac287abc8396910ad8737566df99081dd3e69 (patch)
tree4a94b06b07efd8e95d176dbb940d982b90784ad1 /bignum.c
parentbb39b1ea1fc6263df598d3cc558d53a2a917df7e (diff)
* bignum.c (rb_big2str0): wrong allocation length.
[ruby-dev:29710] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@11242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 04d438445d..d6c25b1a2f 100644
--- a/bignum.c
+++ b/bignum.c
@@ -645,7 +645,7 @@ rb_big2str0(x, base, trim)
j /= 3;
break;
case 10: case 11: case 12: case 13: case 14: case 15:
- j = j * 241L / 800;
+ j = j * 241L / 800 + 1;
break;
case 16: case 17: case 18: case 19: case 20: case 21:
case 22: case 23: case 24: case 25: case 26: case 27: