Fixed build with Clang 10, broken by 32578e837322.
This silences the -Wimplicit-int-float-conversion warning.
This commit is contained in:
@@ -2142,7 +2142,9 @@ nxt_conf_json_parse_number(nxt_mp_t *mp, nxt_conf_value_t *value, u_char *start,
|
|||||||
|
|
||||||
num = nxt_strtod(value->u.number, &end);
|
num = nxt_strtod(value->u.number, &end);
|
||||||
|
|
||||||
if (nxt_slow_path(nxt_errno == NXT_ERANGE || fabs(num) > NXT_INT64_T_MAX)) {
|
if (nxt_slow_path(nxt_errno == NXT_ERANGE
|
||||||
|
|| fabs(num) > (double) NXT_INT64_T_MAX))
|
||||||
|
{
|
||||||
nxt_conf_json_parse_error(error, start,
|
nxt_conf_json_parse_error(error, start,
|
||||||
"The number is out of representable range. Such JSON number "
|
"The number is out of representable range. Such JSON number "
|
||||||
"value is not supported."
|
"value is not supported."
|
||||||
|
|||||||
Reference in New Issue
Block a user