mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
3543491916
commit
f6a5c0fae2
2 changed files with 5 additions and 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.
|
||||
|
|
2
time.c
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
|
||||
|
|
Loading…
Add table
Reference in a new issue