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

ruby-changes:19272

From: tadf <ko1@a...>
Date: Wed, 20 Apr 2011 21:34:26 +0900 (JST)
Subject: [ruby-changes:19272] Ruby:r31311 (trunk): * ext/date/date_strptime.c (date__strptime_internal): do not

tadf	2011-04-20 21:34:01 +0900 (Wed, 20 Apr 2011)

  New Revision: 31311

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

  Log:
    * ext/date/date_strptime.c (date__strptime_internal): do not
      overwrite local variables.

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

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 31310)
+++ ChangeLog	(revision 31311)
@@ -1,3 +1,8 @@
+Wed Apr 20 21:32:11 2011  Tadayoshi Funaba  <tadf@d...>
+
+	* ext/date/date_strptime.c (date__strptime_internal): do not
+	  overwrite local variables.
+
 Wed Apr 20 14:41:28 2011  NARUSE, Yui  <naruse@r...>
 
 	* string.c (rb_str_each_line): check string's length when compare
Index: ext/date/date_strptime.c
===================================================================
--- ext/date/date_strptime.c	(revision 31310)
+++ ext/date/date_strptime.c	(revision 31311)
@@ -576,6 +576,7 @@
 		    }
 
 		    b = rb_backref_get();
+		    rb_match_busy(b);
 		    m = f_match(pat, rb_usascii_str_new2(&str[si]));
 
 		    if (!NIL_P(m)) {

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

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