Fix implicit 'double' conversion reported by Clang (#4296)

JerryScript-DCO-1.0-Signed-off-by: Adam Kallai kadam@inf.u-szeged.hu
This commit is contained in:
Ádám Kallai 2020-10-19 14:30:43 +02:00 committed by GitHub
parent 01c0ca3b6c
commit 23e9e773e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1306,7 +1306,7 @@ ecma_builtin_array_prototype_object_splice (const ecma_value_t args[], /**< argu
#if ENABLED (JERRY_ESNEXT)
/* ES11: 8. */
if (new_length > ECMA_NUMBER_MAX_SAFE_INTEGER)
if ((ecma_number_t) new_length > ECMA_NUMBER_MAX_SAFE_INTEGER)
{
return ecma_raise_type_error (ECMA_ERR_MSG ("Invalid new array length"));
}