summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-12 06:33:23 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-12 06:33:23 +0000
commitfb5d2f44c45d35fe527704674fb599d276c345b8 (patch)
tree178d06b374b72fe491b7e03450c28eabfd49c785
parent0907cf22a68230a3dc1e9369a74527d4432cfd0a (diff)
downloadruby-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--ChangeLog4
-rw-r--r--bignum.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 34b23d48b..6e6b5effa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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().
diff --git a/bignum.c b/bignum.c
index 5168ef172..1861b85d5 100644
--- a/bignum.c
+++ b/bignum.c
@@ -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);