Fix implicit 'double' conversion reported by Clang 12.0.0 (#4288)

JerryScript-DCO-1.0-Signed-off-by: Adam Kallai kadam@inf.u-szeged.hu
This commit is contained in:
Ádám Kallai
2020-10-14 11:43:27 +02:00
committed by GitHub
parent 2a8f1dcbc3
commit f6cf1400bd
3 changed files with 6 additions and 6 deletions
@@ -367,7 +367,7 @@ ecma_builtin_helper_array_concat_value (ecma_object_t *array_obj_p, /**< array *
}
/* 4 . */
if (*length_p + arg_len > ECMA_NUMBER_MAX_SAFE_INTEGER)
if ((ecma_number_t) (*length_p + arg_len) > ECMA_NUMBER_MAX_SAFE_INTEGER)
{
return ecma_raise_type_error (ECMA_ERR_MSG ("Invalid array length."));
}