diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-12-28 21:09:52 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2019-12-28 21:10:08 +0900 |
commit | bb5b8ace8d7e517ac3686497a819a2a52d32b342 (patch) | |
tree | 2b67ef1c14f83fbf736b70a885ce94e6d0d74ced /thread.c | |
parent | 4fb6643f31cdee33184043ce17c42001274c4392 (diff) |
Fix typo
Diffstat (limited to 'thread.c')
-rw-r--r-- | thread.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1210,14 +1210,14 @@ COMPILER_WARNING_IGNORED(-Wimplicit-int-float-conversion) /* C4305: 'initializing': truncation from '__int64' to 'const double' */ COMPILER_WARNING_IGNORED(4305) #endif -static const double TIMESPEC_SEC_MAX_as_doube = TIMESPEC_SEC_MAX; +static const double TIMESPEC_SEC_MAX_as_double = TIMESPEC_SEC_MAX; COMPILER_WARNING_POP 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 = 2.0 * (TIMESPEC_SEC_MAX_as_doube / 2.0 + 1.0); + const double TIMESPEC_SEC_MAX_PLUS_ONE = 2.0 * (TIMESPEC_SEC_MAX_as_double / 2.0 + 1.0); if (TIMESPEC_SEC_MAX_PLUS_ONE <= d) { return NULL; |