summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-18 22:20:22 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-06-18 22:20:22 +0000
commit0393a91926199318bdd539e6ef2d59b0b616f4ba (patch)
treee900b028ba8bdc15d650222449ff832864faafb2 /bignum.c
parent54d04073d77fc65844fd9062cc90dd8a3c079de5 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index ec1a864a9a..f831fb44e2 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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);
}
}