aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog4
-rw-r--r--numeric.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index d8fe1c23f8..100d1ba235 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
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;
}