summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
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 9d58e69f9ea..cf9128d0b3e 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;
}