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@830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2000-07-12 07:33:34 +00:00
parent b97e1cfdb1
commit ec9fbf3939

View file

@ -787,7 +787,7 @@ bigdivrem(x, y, divp, modp)
yds = BDIGITS(y); yds = BDIGITS(y);
if (ny == 0 && yds[0] == 0) rb_num_zerodiv(); if (ny == 0 && yds[0] == 0) rb_num_zerodiv();
if (nx < ny || nx == ny && BDIGITS(x)[nx - 1] < BDIGITS(y)[ny - 1]) { if (nx < ny || nx == ny && BDIGITS(x)[nx - 1] < BDIGITS(y)[ny - 1]) {
if (divp) *divp = INT2FIX(0); if (divp) *divp = rb_int2big(0);
if (modp) *modp = x; if (modp) *modp = x;
return; return;
} }