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 | 535914050a477127b737198aaa1605bdf5a03184 (patch) | |
tree | 32e06e1cf8c1df52d03824692cac5a5a7a95a6d6 | |
parent | 2ace9ef5a3b9d5ff9f5eccf7bdd893dd2aee0b48 (diff) | |
download | ruby-535914050a477127b737198aaa1605bdf5a03184.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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | numeric.c | 4 |
2 files changed, 6 insertions, 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; } |