1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-07-12 06:33:23 +00:00
parent e3d3909fa0
commit b97e1cfdb1
2 changed files with 6 additions and 2 deletions

View file

@ -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> Wed Jul 12 15:06:28 2000 Yukihiro Matsumoto <matz@netlab.co.jp>
* eval.c (rb_eval): use rb_const_get_at(). * eval.c (rb_eval): use rb_const_get_at().

View file

@ -868,10 +868,10 @@ bigdivrem(x, y, divp, modp)
} while (--j >= ny); } while (--j >= ny);
if (divp) { /* move quotient down in z */ if (divp) { /* move quotient down in z */
*divp = rb_big_clone(z); *divp = rb_big_clone(z);
zds = BDIGITS(*div); zds = BDIGITS(*divp);
j = (nx==ny ? nx+2 : nx+1) - ny; j = (nx==ny ? nx+2 : nx+1) - ny;
for (i = 0;i < j;i++) zds[i] = zds[i+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 */ if (modp) { /* just normalize remainder */
*modp = rb_big_clone(z); *modp = rb_big_clone(z);