diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 22:20:22 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-18 22:20:22 +0000 |
commit | 0393a91926199318bdd539e6ef2d59b0b616f4ba (patch) | |
tree | e900b028ba8bdc15d650222449ff832864faafb2 | |
parent | 54d04073d77fc65844fd9062cc90dd8a3c079de5 (diff) | |
download | ruby-0393a91926199318bdd539e6ef2d59b0b616f4ba.tar.gz |
* bignum.c (rb_big_aref): Apply BIGLO to ~xds[i] for environment which
BDIGIT is 16bit.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41404 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 @@ +Wed Jun 19 07:18:47 2013 Tanaka Akira <akr@fsij.org> + + * bignum.c (rb_big_aref): Apply BIGLO to ~xds[i] for environment which + BDIGIT is 16bit. + Wed Jun 19 07:09:26 2013 Koichi Sasada <ko1@atdot.net> * gc.c (rgengc_remember): fix output level. @@ -4877,7 +4877,7 @@ rb_big_aref(VALUE x, VALUE y) if (!RBIGNUM_SIGN(x)) { xds = BDIGITS(x); i = 0; num = 1; - while (num += ~xds[i], ++i <= s1) { + while (num += BIGLO(~xds[i]), ++i <= s1) { num = BIGDN(num); } } |