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

ruby-changes:16332

From: naruse <ko1@a...>
Date: Sun, 13 Jun 2010 01:40:39 +0900 (JST)
Subject: [ruby-changes:16332] Ruby:r28305 (trunk): * time.c (rb_localtime_r2): fix mixed declarations and code.

naruse	2010-06-13 01:40:25 +0900 (Sun, 13 Jun 2010)

  New Revision: 28305

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

  Log:
    * time.c (rb_localtime_r2): fix mixed declarations and code.

  Modified files:
    trunk/ChangeLog
    trunk/time.c

Index: time.c
===================================================================
--- time.c	(revision 28304)
+++ time.c	(revision 28305)
@@ -873,10 +873,11 @@
         int gmtoff1 = 0;
         int gmtoff2 = 0;
         struct tm tmp = *result;
+        time_t t2;
 #  if defined(HAVE_STRUCT_TM_TM_GMTOFF)
         gmtoff1 = result->tm_gmtoff;
 #  endif
-        time_t t2 = mktime(&tmp);
+        t2 = mktime(&tmp);
 #  if defined(HAVE_STRUCT_TM_TM_GMTOFF)
         gmtoff2 = tmp.tm_gmtoff;
 #  endif
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 28304)
+++ ChangeLog	(revision 28305)
@@ -1,3 +1,7 @@
+Sun Jun 13 01:38:17 2010  NARUSE, Yui  <naruse@r...>
+
+	* time.c (rb_localtime_r2): fix mixed declarations and code.
+
 Sun Jun 13 00:27:24 2010  NARUSE, Yui  <naruse@r...>
 
 	* ext/dl/lib/dl.rb: don't require when already loaded.

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

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