From 535914050a477127b737198aaa1605bdf5a03184 Mon Sep 17 00:00:00 2001 From: kazu Date: Mon, 28 Mar 2016 12:25:41 +0000 Subject: * numeric.c (int_pos_p): fix typos. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54314 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- numeric.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'numeric.c') diff --git a/numeric.c b/numeric.c index e368b59c3d..4bb2a3263e 100644 --- a/numeric.c +++ b/numeric.c @@ -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; } -- cgit v1.2.3