зеркало из https://github.com/github/ruby.git
Fix typo
This commit is contained in:
Родитель
4fb6643f31
Коммит
bb5b8ace8d
4
thread.c
4
thread.c
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче