* 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
This commit is contained in:
akr 2013-06-18 22:20:22 +00:00
parent 54d04073d7
commit 0393a91926
2 changed files with 6 additions and 1 deletions

View File

@ -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.

View File

@ -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);
}
}