mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bignum.c (bigdivmod): remove redundant code. a patch from
TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in [ruby-dev:36044]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d945524057
commit
66529e382f
2 changed files with 7 additions and 3 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Aug 30 01:55:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
|
* bignum.c (bigdivmod): remove redundant code. a patch from
|
||||||
|
TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in [ruby-dev:36044].
|
||||||
|
|
||||||
Sat Aug 30 01:37:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
Sat Aug 30 01:37:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||||
|
|
||||||
* lib/cgi.rb (CGI#initialize): remove unused constants. a patch
|
* lib/cgi.rb (CGI#initialize): remove unused constants. a patch
|
||||||
|
|
5
bignum.c
5
bignum.c
|
@ -1794,9 +1794,8 @@ bigdivmod(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
|
||||||
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);
|
||||||
}
|
}
|
||||||
else {
|
else if (modp) {
|
||||||
if (divp) *divp = *divp;
|
*modp = mod;
|
||||||
if (modp) *modp = mod;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue