Fix compilation warnings when using 32-bit floats (#4199)
JerryScript-DCO-1.0-Signed-off-by: Philippe [email protected]
This commit is contained in:
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 */
|
||||
|
||||
Reference in new issue
Block a user