mirror of
https://github.com/jerryscript-project/jerryscript.git
synced 2025-12-15 16:29:21 +00:00
Fixed build failure caused by conversion warning with GCC-5.4 (#2839)
JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com
This commit is contained in:
parent
a6a7d8c7b8
commit
806b9f05c0
@ -251,7 +251,7 @@ ecma_new_map_key_string (ecma_value_t value) /**< non prop-name ecma-value */
|
||||
ecma_string_t *string_p = ecma_alloc_string ();
|
||||
string_p->refs_and_container = ECMA_STRING_REF_ONE | ECMA_STRING_CONTAINER_MAP_KEY;
|
||||
string_p->u.value = ecma_copy_value_if_not_object (value);
|
||||
string_p->hash = ecma_is_value_simple (value) ? (uint16_t) value : 0;
|
||||
string_p->hash = (lit_string_hash_t) (ecma_is_value_simple (value) ? value : 0);
|
||||
|
||||
return string_p;
|
||||
} /* ecma_new_map_key_string */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user