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 | fb5d2f44c45d35fe527704674fb599d276c345b8 (patch) | |
| tree | 178d06b374b72fe491b7e03450c28eabfd49c785 | |
| parent | 0907cf22a68230a3dc1e9369a74527d4432cfd0a (diff) | |
| download | ruby-fb5d2f44c45d35fe527704674fb599d276c345b8.tar.gz ruby-fb5d2f44c45d35fe527704674fb599d276c345b8.tar.xz ruby-fb5d2f44c45d35fe527704674fb599d276c345b8.zip | |
matz
git-svn-id: http://svn.ruby-lang.org/repos/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); |
