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

ruby-changes:35653

From: nobu <ko1@a...>
Date: Mon, 29 Sep 2014 11:21:01 +0900 (JST)
Subject: [ruby-changes:35653] nobu:r47735 (trunk): date_core.c: revert const

nobu	2014-09-29 11:20:56 +0900 (Mon, 29 Sep 2014)

  New Revision: 47735

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

  Log:
    date_core.c: revert const
    
    * ext/date/date_core.c (SimpleDateData, ComplexDateData): revert
      const for aggregation assignments.

  Modified files:
    trunk/ext/date/date_core.c
Index: ext/date/date_core.c
===================================================================
--- ext/date/date_core.c	(revision 47734)
+++ ext/date/date_core.c	(revision 47735)
@@ -235,7 +235,7 @@ f_negative_p(VALUE x) https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L235
 struct SimpleDateData
 {
     unsigned flags;
-    const VALUE nth;	/* not always canonicalized */
+    VALUE nth;	/* not always canonicalized */
     int jd;	/* as utc */
     /* df is zero */
     /* sf is zero */
@@ -258,10 +258,10 @@ struct SimpleDateData https://github.com/ruby/ruby/blob/trunk/ext/date/date_core.c#L258
 struct ComplexDateData
 {
     unsigned flags;
-    const VALUE nth;	/* not always canonicalized */
+    VALUE nth;	/* not always canonicalized */
     int jd; 	/* as utc */
     int df;	/* as utc, in secs */
-    const VALUE sf;	/* in nano secs */
+    VALUE sf;	/* in nano secs */
     int of;	/* in secs */
     date_sg_t sg;  /* 2298874..2426355 or -/+oo -- at most 22 bits */
     /* decoded as local */

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

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