summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-12 07:33:34 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-12 07:33:34 +0000
commitec9fbf3939be00d70637e59dd34cad259ce62eef (patch)
treea9ad8a79c98f02003684138a0a4e65562f42a672
parentb97e1cfdb1294ccf8da7c469d8075ff0c961e75d (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@830 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 1861b85d58..9d58e69f9e 100644
--- a/bignum.c
+++ b/bignum.c
@@ -787,7 +787,7 @@ bigdivrem(x, y, divp, modp)
yds = BDIGITS(y);
if (ny == 0 && yds[0] == 0) rb_num_zerodiv();
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;
return;
}