diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-29 19:10:00 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-29 19:10:00 +0000 |
commit | f6a5c0fae292a52e002ec9db48a749737568479c (patch) | |
tree | 3e9465f2ef880e4eda1cdcaf1e24bd8b713c6116 | |
parent | 3543491916235f515f0d7c283b57263177d6b817 (diff) |
* 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
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | time.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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. @@ -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 |