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

ruby-changes:29053

From: tadf <ko1@a...>
Date: Thu, 6 Jun 2013 19:33:59 +0900 (JST)
Subject: [ruby-changes:29053] tadf:r41105 (trunk): * ext/date/date_core.c: fixed coding error .

tadf	2013-06-06 19:33:48 +0900 (Thu, 06 Jun 2013)

  New Revision: 41105

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41105

  Log:
    * ext/date/date_core.c: fixed coding error [ruby-core:55337].
      reported by Riley Lynch.

  Modified files:
    trunk/ChangeLog
    trunk/ext/date/date_core.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 41104)
+++ ChangeLog	(revision 41105)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Jun  6 19:31:33 2013  Tadayoshi Funaba  <tadf@d...>
+
+	* ext/date/date_core.c: fixed coding error [ruby-core:55337].
+	  reported by Riley Lynch.
+
 Thu Jun  6 14:16:37 2013  Narihiro Nakamura  <authornari@g...>
 
 	* ext/objspace/object_tracing.c: rename allocation_info to
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 41104)
+++ ext/date/date_core.c	(revision 41105)
@@ -2015,7 +2015,7 @@ civil_to_jd(VALUE y, int m, int d, doubl https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2015
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2050,7 +2050,7 @@ ordinal_to_jd(VALUE y, int d, double sg, https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2050
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2085,7 +2085,7 @@ commercial_to_jd(VALUE y, int w, int d, https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2085
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2120,7 +2120,7 @@ weeknum_to_jd(VALUE y, int w, int d, int https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2120
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2155,7 +2155,7 @@ nth_kday_to_jd(VALUE y, int m, int n, in https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2155
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2194,7 +2194,7 @@ valid_ordinal_p(VALUE y, int d, double s https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2194
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2233,7 +2233,7 @@ valid_civil_p(VALUE y, int m, int d, dou https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2233
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2269,7 +2269,7 @@ valid_commercial_p(VALUE y, int w, int d https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2269
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2299,7 +2299,7 @@ valid_weeknum_p(VALUE y, int w, int d, i https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2299
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {
@@ -2330,7 +2330,7 @@ valid_nth_kday_p(VALUE y, int m, int n, https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L2330
 	    *ry = FIX2INT(y);
 	else {
 	    VALUE nth2;
-	    decode_year(y, ns ? -1 : +1, &nth2, ry);
+	    decode_year(y, *ns ? -1 : +1, &nth2, ry);
 	}
     }
     else {

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

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