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

ruby-changes:3390

From: ko1@a...
Date: 4 Jan 2008 23:09:14 +0900
Subject: [ruby-changes:3390] nobu - Ruby:r14883 (trunk, ruby_1_8): * time.c (time_arg): use converted object.

nobu	2008-01-04 23:08:50 +0900 (Fri, 04 Jan 2008)

  New Revision: 14883

  Modified files:
    branches/ruby_1_8/ChangeLog
    branches/ruby_1_8/time.c
    trunk/ChangeLog
    trunk/time.c

  Log:
    * time.c (time_arg): use converted object.  [ruby-core:14759]


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/time.c?r1=14883&r2=14882&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/ChangeLog?r1=14883&r2=14882&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=14883&r2=14882&diff_format=u
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/ruby_1_8/time.c?r1=14883&r2=14882&diff_format=u

Index: time.c
===================================================================
--- time.c	(revision 14882)
+++ time.c	(revision 14883)
@@ -419,7 +419,7 @@
 	    tm->tm_mon = -1;
 	    for (i=0; i<12; i++) {
 		if (RSTRING_LEN(s) == 3 &&
-		    STRCASECMP(months[i], RSTRING_PTR(v[1])) == 0) {
+		    STRCASECMP(months[i], RSTRING_PTR(s)) == 0) {
 		    tm->tm_mon = i;
 		    break;
 		}
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 14882)
+++ ChangeLog	(revision 14883)
@@ -1,3 +1,7 @@
+Fri Jan  4 23:08:48 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* time.c (time_arg): use converted object.  [ruby-core:14759]
+
 Fri Jan  4 16:24:58 2008  Tanaka Akira  <akr@f...>
 
 	* ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): use
Index: ruby_1_8/time.c
===================================================================
--- ruby_1_8/time.c	(revision 14882)
+++ ruby_1_8/time.c	(revision 14883)
@@ -349,7 +349,7 @@
 	    tm->tm_mon = -1;
 	    for (i=0; i<12; i++) {
 		if (RSTRING(s)->len == 3 &&
-		    strcasecmp(months[i], RSTRING(v[1])->ptr) == 0) {
+		    strcasecmp(months[i], RSTRING(s)->ptr) == 0) {
 		    tm->tm_mon = i;
 		    break;
 		}
Index: ruby_1_8/ChangeLog
===================================================================
--- ruby_1_8/ChangeLog	(revision 14882)
+++ ruby_1_8/ChangeLog	(revision 14883)
@@ -1,3 +1,7 @@
+Fri Jan  4 23:08:48 2008  Nobuyoshi Nakada  <nobu@r...>
+
+	* time.c (time_arg): use converted object.  [ruby-core:14759]
+
 Fri Jan  4 01:20:21 2008  Nobuyoshi Nakada  <nobu@r...>
 
 	* win32.h: only VC6 needs extern "C++" for math.h.  [ruby-talk:285660]

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

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