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 /bignum.c | |
parent | 54d04073d77fc65844fd9062cc90dd8a3c079de5 (diff) |
* 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
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } } |