summaryrefslogtreecommitdiffstats
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
commite030f38158a79558a93062cd474e559124fb7494 (patch)
treef8db2f445a65ee69d9fca2a5e4ceb5492112555c /bignum.c
parent11eb0232d9c8412f7bc24a9d710df88124332136 (diff)
downloadruby-e030f38158a79558a93062cd474e559124fb7494.tar.gz
ruby-e030f38158a79558a93062cd474e559124fb7494.tar.xz
ruby-e030f38158a79558a93062cd474e559124fb7494.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/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 9d58e69f9..cf9128d0b 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;
}