Fix compilation warnings when using 32-bit floats (#4199)

JerryScript-DCO-1.0-Signed-off-by: Philippe [email protected]
This commit is contained in:
Philippe authored and GitHub committed 2020-09-28 16:12:21 +02:00
1 parent 9f93b0a8ee
commit f97c0134d7
5 files changed
+9 -9

No files matched your search

@@ -300,8 +300,8 @@ ecma_builtin_helper_uint32_index_normalize (ecma_value_t arg, /**< index */
return ECMA_VALUE_ERROR;
}
*number_p = ((to_int < 0) ? (uint32_t) JERRY_MAX (length + to_int, 0)
: (uint32_t) JERRY_MIN (to_int, length));
*number_p = ((to_int < 0) ? (uint32_t) JERRY_MAX ((ecma_number_t) length + to_int, 0)
: (uint32_t) JERRY_MIN (to_int, (ecma_number_t) length));
return ECMA_VALUE_EMPTY;
} /* ecma_builtin_helper_uint32_index_normalize */