ruby-changes:59544
From: Kazuhiro <ko1@a...>
Date: Sat, 28 Dec 2019 21:11:13 +0900 (JST)
Subject: [ruby-changes:59544] bb5b8ace8d (master): Fix typo
https://git.ruby-lang.org/ruby.git/commit/?id=bb5b8ace8d From bb5b8ace8d7e517ac3686497a819a2a52d32b342 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA <zn@m...> Date: Sat, 28 Dec 2019 21:09:52 +0900 Subject: Fix typo diff --git a/thread.c b/thread.c index 73d60b0..16f3e1f 100644 --- a/thread.c +++ b/thread.c @@ -1210,14 +1210,14 @@ COMPILER_WARNING_IGNORED(-Wimplicit-int-float-conversion) https://github.com/ruby/ruby/blob/trunk/thread.c#L1210 /* 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; -- cgit v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/