Remove trivial ecma_number arithmetic functions (#2123)
The affected function calls have been replaced with the appropriate arithmetic operands. JerryScript-DCO-1.0-Signed-off-by: Robert Fancsik frobert@inf.u-szeged.hu
This commit is contained in:
committed by
László Langó
parent
8b109510fd
commit
90f2473f08
@@ -273,7 +273,7 @@ ecma_builtin_helper_array_index_normalize (ecma_number_t index, /**< index */
|
||||
{
|
||||
if (ecma_number_is_negative (index))
|
||||
{
|
||||
ecma_number_t index_neg = ecma_number_negate (index);
|
||||
ecma_number_t index_neg = -index;
|
||||
|
||||
if (index_neg > length)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user