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

JerryScript-DCO-1.0-Signed-off-by: Philippe pgu-swir@users.noreply.github.com
This commit is contained in:
Philippe
2020-09-28 07:12:21 -07:00
committed by GitHub
parent 9f93b0a8ee
commit f97c0134d7
5 changed files with 9 additions and 9 deletions
@@ -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 */