diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-12 06:33:23 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2000-07-12 06:33:23 +0000 |
commit | b97e1cfdb1294ccf8da7c469d8075ff0c961e75d (patch) | |
tree | 178d06b374b72fe491b7e03450c28eabfd49c785 | |
parent | e3d3909fa0f000b3acf55a34280c144a5ed7e664 (diff) | |
download | ruby-b97e1cfdb1294ccf8da7c469d8075ff0c961e75d.tar.gz |
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | bignum.c | 4 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,7 @@ +Wed Jul 12 15:32:57 2000 Yukihiro Matsumoto <matz@netlab.co.jp> + + * bignum.c (bigdivrem): small embarrassing typo. + Wed Jul 12 15:06:28 2000 Yukihiro Matsumoto <matz@netlab.co.jp> * eval.c (rb_eval): use rb_const_get_at(). @@ -868,10 +868,10 @@ bigdivrem(x, y, divp, modp) } while (--j >= ny); if (divp) { /* move quotient down in z */ *divp = rb_big_clone(z); - zds = BDIGITS(*div); + zds = BDIGITS(*divp); j = (nx==ny ? nx+2 : nx+1) - ny; for (i = 0;i < j;i++) zds[i] = zds[i+ny]; - RBIGNUM(*div)->len = i; + RBIGNUM(*divp)->len = i; } if (modp) { /* just normalize remainder */ *modp = rb_big_clone(z); |