diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 12:25:41 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-28 12:25:41 +0000 |
commit | 0a41425ad424dbf52e30bce1e649204e9a7553c3 (patch) | |
tree | 32e06e1cf8c1df52d03824692cac5a5a7a95a6d6 /numeric.c | |
parent | 2d20a27fb4ee8d3401627e538cb68019704d7bae (diff) | |
download | ruby-0a41425ad424dbf52e30bce1e649204e9a7553c3.tar.gz |
* numeric.c (int_pos_p): fix typos.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |