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

ruby-changes:15641

From: usa <ko1@a...>
Date: Fri, 30 Apr 2010 04:10:16 +0900 (JST)
Subject: [ruby-changes:15641] Ruby:r27557 (trunk): * time.c (TIMET_MAX): should be time_t, not unsigned_time_t.

usa	2010-04-30 04:10:00 +0900 (Fri, 30 Apr 2010)

  New Revision: 27557

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

  Log:
    * time.c (TIMET_MAX): should be time_t, not unsigned_time_t.

  Modified files:
    trunk/ChangeLog
    trunk/time.c

Index: time.c
===================================================================
--- time.c	(revision 27556)
+++ time.c	(revision 27557)
@@ -711,7 +711,7 @@
 # error cannot find integer type which size is same as time_t.
 #endif
 
-#define TIMET_MAX (~(time_t)0 <= 0 ? (time_t)((~(unsigned_time_t)0) >> 1) : (~(unsigned_time_t)0))
+#define TIMET_MAX (~(time_t)0 <= 0 ? (time_t)((~(unsigned_time_t)0) >> 1) : (time_t)(~(unsigned_time_t)0))
 #define TIMET_MIN (~(time_t)0 <= 0 ? (time_t)(((unsigned_time_t)1) << (sizeof(time_t) * CHAR_BIT - 1)) : (time_t)0)
 
 static wideval_t
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 27556)
+++ ChangeLog	(revision 27557)
@@ -1,3 +1,7 @@
+Fri Apr 30 04:09:30 2010  NAKAMURA Usaku  <usa@r...>
+
+	* time.c (TIMET_MAX): should be time_t, not unsigned_time_t.
+
 Fri Apr 30 03:59:08 2010  NAKAMURA Usaku  <usa@r...>
 
 	* time.c (rb_time_unmagnify_to_float): should cast.

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

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