summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-19 08:04:52 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-07-19 08:04:52 +0000
commit8053b7f3b10d686dd5296f1f5093b635bef652a6 (patch)
treef8db2f445a65ee69d9fca2a5e4ceb5492112555c /bignum.c
parentec4e83ed5623edf8602dce45358c34d245314906 (diff)
matz
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bignum.c b/bignum.c
index 9d58e69f9e..cf9128d0b3 100644
--- a/bignum.c
+++ b/bignum.c
@@ -804,7 +804,7 @@ bigdivrem(x, y, divp, modp)
}
RBIGNUM(z)->sign = RBIGNUM(x)->sign==RBIGNUM(y)->sign;
if (!RBIGNUM(x)->sign) t2 = -(long)t2;
- if (modp) *modp = rb_uint2big(t2);
+ if (modp) *modp = rb_int2big((long)t2);
if (divp) *divp = z;
return;
}