* bignum.c (bigdivmod): small typo.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3654 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
matz 2003-04-09 06:49:51 +00:00
parent 5cb4133e67
commit 22af5fa881
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
Wed Apr 9 15:49:30 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
* bignum.c (bigdivmod): small typo.
Wed Apr 9 15:35:04 2003 NAKAMURA Usaku <usa@ruby-lang.org>
* ext/readline/readline.c: include <unistd.h> only when

View File

@ -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);
}