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
+2 -2
View File
@@ -561,7 +561,7 @@ ecma_new_ecma_string_from_length (ecma_length_t number) /**< property length */
}
#if ENABLED (JERRY_ESNEXT)
JERRY_ASSERT (number <= ECMA_NUMBER_MAX_SAFE_INTEGER);
JERRY_ASSERT ((ecma_number_t) number <= ECMA_NUMBER_MAX_SAFE_INTEGER);
if (JERRY_UNLIKELY (number > UINT32_MAX))
{
@@ -2968,7 +2968,7 @@ ecma_op_advance_string_index (ecma_string_t *str_p, /**< input string */
bool is_unicode) /**< true - if regexp object's "unicode" flag is set
false - otherwise */
{
JERRY_ASSERT (index <= ECMA_NUMBER_MAX_SAFE_INTEGER);
JERRY_ASSERT ((ecma_number_t) index <= ECMA_NUMBER_MAX_SAFE_INTEGER);
ecma_length_t next_index = index + 1;
if (!is_unicode)