1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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