summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-23 16:06:51 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-06-23 16:06:51 +0000
commit5182eb80b4df101fda0776fc5a745b164845b748 (patch)
treec3742dd071072cb4ac8d621c668f3466de3d15ee /bignum.c
parent0fffabe197432f295ecf6161cfa144c65e1a7c1b (diff)
2000-06-24
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_4@779 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 127f32baba..dca0edc14b 100644
--- a/bignum.c
+++ b/bignum.c
@@ -1199,13 +1199,13 @@ rb_big_lshift(x, y)
long len, i;
if (shift < 0) return rb_big_rshift(x, INT2FIX(-shift));
- xds = BDIGITS(x);
len = RBIGNUM(x)->len;
z = bignew(len+s1+1, RBIGNUM(x)->sign);
zds = BDIGITS(z);
for (i=0; i<s1; i++) {
*zds++ = 0;
}
+ xds = BDIGITS(x);
for (i=0; i<len; i++) {
num = num | *xds++<<s2;
*zds++ = BIGLO(num);