diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-03 14:47:38 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-26 20:45:12 +0900 |
commit | bf53d6c7d19f877c821901b3288d7f80955ffbb7 (patch) | |
tree | 4c4dbac564d721af8b295f55e6f81c21af8b0fbe /thread.c | |
parent | 3ae09b30f8ba5ff4dd148d358f51b99ae0ae6c38 (diff) | |
download | ruby-bf53d6c7d19f877c821901b3288d7f80955ffbb7.tar.gz |
other minior internal header tweaks
These headers need no rewrite. Just add some minor tweaks, like
addition of #include lines. Mainly cosmetic.
TIMET_MAX_PLUS_ONE was deleted because the macro was used from only
one place (directly write expression there).
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1196,7 +1196,7 @@ static rb_hrtime_t * double2hrtime(rb_hrtime_t *hrt, double d) { /* assume timespec.tv_sec has same signedness as time_t */ - const double TIMESPEC_SEC_MAX_PLUS_ONE = TIMET_MAX_PLUS_ONE; + const double TIMESPEC_SEC_MAX_PLUS_ONE = 2.0 * (TIMESPEC_SEC_MAX / 2 + 1.0); if (TIMESPEC_SEC_MAX_PLUS_ONE <= d) { return NULL; |