diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-30 09:37:52 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-10-30 09:37:52 +0000 |
| commit | c6139abe09fe47ecd4b8c37621bae4b00d642a07 (patch) | |
| tree | 5de213d2a85fb8df46a2267fbbd133e39f4716bb | |
| parent | 4f61c1c5c12d59269fa9adbf4803f9413f53a380 (diff) | |
| download | ruby-c6139abe09fe47ecd4b8c37621bae4b00d642a07.tar.gz ruby-c6139abe09fe47ecd4b8c37621bae4b00d642a07.tar.xz ruby-c6139abe09fe47ecd4b8c37621bae4b00d642a07.zip | |
* bignum.c (rb_big2str0): wrong allocation length.
[ruby-dev:29710]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | bignum.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +Mon Oct 30 18:35:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * bignum.c (rb_big2str0): wrong allocation length. + [ruby-dev:29710] + Mon Oct 30 12:34:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org> * eval.c (rb_eval): fix commit miss. [ruby-dev:29707] @@ -607,7 +607,7 @@ rb_big2str0(VALUE x, int base, int 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: |
