mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (rb_int_round): cast to SIGNED_VALUE to suppress
warnings by -Wsign-compare. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
54a6cd84df
commit
a0842e7cd8
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Nov 5 23:58:32 2016 Shugo Maeda <shugo@ruby-lang.org>
|
||||
|
||||
* numeric.c (rb_int_round): cast to SIGNED_VALUE to suppress
|
||||
warnings by -Wsign-compare.
|
||||
|
||||
Sat Nov 5 23:48:27 2016 NARUSE, Yui <naruse@ruby-lang.org>
|
||||
|
||||
* file.c (rb_home_dir_of): convert given username into filesystem
|
||||
|
|
|
@ -2075,7 +2075,7 @@ rb_int_round(VALUE num, int ndigits, enum ruby_num_rounding_mode mode)
|
|||
(FIXNUM_ZERO_P(r) &&
|
||||
ROUND_TO(mode,
|
||||
int_pos_p(num),
|
||||
int_odd_p(rb_int_idiv(n, f))))) {
|
||||
(SIGNED_VALUE) int_odd_p(rb_int_idiv(n, f))))) {
|
||||
n = rb_int_plus(n, f);
|
||||
}
|
||||
return n;
|
||||
|
|
Loading…
Add table
Reference in a new issue