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:
parent
5cb4133e67
commit
22af5fa881
2 changed files with 5 additions and 1 deletions
|
@ -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>
|
Wed Apr 9 15:35:04 2003 NAKAMURA Usaku <usa@ruby-lang.org>
|
||||||
|
|
||||||
* ext/readline/readline.c: include <unistd.h> only when
|
* ext/readline/readline.c: include <unistd.h> only when
|
||||||
|
|
2
bignum.c
2
bignum.c
|
@ -1250,7 +1250,7 @@ bigdivmod(x, y, divp, modp)
|
||||||
VALUE mod;
|
VALUE mod;
|
||||||
|
|
||||||
bigdivrem(x, y, divp, &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 (divp) *divp = bigadd(*divp, rb_int2big(1), 0);
|
||||||
if (modp) *modp = bigadd(mod, y, 1);
|
if (modp) *modp = bigadd(mod, y, 1);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue