diff options
-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; } |