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:
László Langó 2019-04-25 10:27:52 +02:00 committed by Zoltan Herczeg
parent a6a7d8c7b8
commit 806b9f05c0

View File

@ -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 */