mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* numeric.c (int_pos_p): fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d20a27fb4
commit
0a41425ad4
2 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
Mon Mar 28 21:24:02 2016 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
|
||||
|
||||
* numeric.c (int_pos_p): fix typos.
|
||||
|
||||
Mon Mar 28 14:54:49 2016 Martin Duerst <duerst@it.aoyama.ac.jp>
|
||||
|
||||
* enc/unicode.c: Refactoring in preparation for data reduction for
|
||||
|
|
|
@ -183,10 +183,10 @@ static inline int
|
|||
int_pos_p(VALUE num)
|
||||
{
|
||||
if (FIXNUM_P(num)) {
|
||||
return FIXNUM_NEGATIVE_P(num);
|
||||
return FIXNUM_POSITIVE_P(num);
|
||||
}
|
||||
else if (RB_TYPE_P(num, T_BIGNUM)) {
|
||||
return BIGNUM_NEGATIVE_P(num);
|
||||
return BIGNUM_POSITIVE_P(num);
|
||||
}
|
||||
return Qnil;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue