summaryrefslogtreecommitdiff
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
commitb97e1cfdb1294ccf8da7c469d8075ff0c961e75d (patch)
tree178d06b374b72fe491b7e03450c28eabfd49c785
parente3d3909fa0f000b3acf55a34280c144a5ed7e664 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/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 34b23d48b9..6e6b5effa0 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 5168ef1728..1861b85d58 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);