mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
b97e1cfdb1
commit
ec9fbf3939
1 changed files with 1 additions and 1 deletions
2
bignum.c
2
bignum.c
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue