mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
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:
parent
01c0ca3b6c
commit
23e9e773e0
@ -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"));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user