Skip to content

Commit

Permalink
* time.c (TIMET_MAX): should be time_t, not unsigned_time_t.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
unak committed Apr 29, 2010
1 parent 3543491 commit f6a5c0f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Fri Apr 30 04:09:30 2010 NAKAMURA Usaku <[email protected]>

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

Fri Apr 30 03:59:08 2010 NAKAMURA Usaku <[email protected]>

* time.c (rb_time_unmagnify_to_float): should cast.
Expand Down
2 changes: 1 addition & 1 deletion time.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f6a5c0f

Please sign in to comment.