Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
commit f6a5c0fae292a52e002ec9db48a749737568479c 1 parent 3543491
@unak unak authored
Showing with 5 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +1 −1  time.c
View
4 ChangeLog
@@ -1,3 +1,7 @@
+Fri Apr 30 04:09:30 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (TIMET_MAX): should be time_t, not unsigned_time_t.
+
Fri Apr 30 03:59:08 2010 NAKAMURA Usaku <usa@ruby-lang.org>
* time.c (rb_time_unmagnify_to_float): should cast.
View
2  time.c
@@ -711,7 +711,7 @@ typedef unsigned LONG_LONG unsigned_time_t;
# 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
Please sign in to comment.
Something went wrong with that request. Please try again.