[前][次][番号順一覧][スレッド一覧]

ruby-changes:42240

From: kazu <ko1@a...>
Date: Mon, 28 Mar 2016 21:25:48 +0900 (JST)
Subject: [ruby-changes:42240] kazu:r54314 (trunk): * numeric.c (int_pos_p): fix typos.

kazu	2016-03-28 21:25:41 +0900 (Mon, 28 Mar 2016)

  New Revision: 54314

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=54314

  Log:
    * numeric.c (int_pos_p): fix typos.

  Modified files:
    trunk/ChangeLog
    trunk/numeric.c
Index: numeric.c
===================================================================
--- numeric.c	(revision 54313)
+++ numeric.c	(revision 54314)
@@ -183,10 +183,10 @@ static inline int https://github.com/ruby/ruby/blob/trunk/numeric.c#L183
 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;
 }
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 54313)
+++ ChangeLog	(revision 54314)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Mon Mar 28 21:24:02 2016  Kazuhiro NISHIYAMA  <zn@m...>
+
+	* numeric.c (int_pos_p): fix typos.
+
 Mon Mar 28 14:54:49 2016  Martin Duerst  <duerst@i...>
 
 	* enc/unicode.c: Refactoring in preparation for data reduction for

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]