From 22af5fa8812d1ac3123dfcbabe3be9d6a93df24a Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 9 Apr 2003 06:49:51 +0000 Subject: [PATCH] * bignum.c (bigdivmod): small typo. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ bignum.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index cd13554066..a636fe57cc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Apr 9 15:49:30 2003 Yukihiro Matsumoto + + * bignum.c (bigdivmod): small typo. + Wed Apr 9 15:35:04 2003 NAKAMURA Usaku * ext/readline/readline.c: include only when diff --git a/bignum.c b/bignum.c index 0ae88ab713..9a0fc0efa8 100644 --- a/bignum.c +++ b/bignum.c @@ -1250,7 +1250,7 @@ bigdivmod(x, y, divp, modp) VALUE mod; bigdivrem(x, y, divp, &mod); - if (RBIGNUM(x)->sign != RBIGNUM(y)->sign && !BIGZEROP(x)) { + if (RBIGNUM(x)->sign != RBIGNUM(y)->sign && !BIGZEROP(mod)) { if (divp) *divp = bigadd(*divp, rb_int2big(1), 0); if (modp) *modp = bigadd(mod, y, 1); }