From 806b9f05c0c5f216a9a56a4b57a46f2701c174ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Lang=C3=B3?= Date: Thu, 25 Apr 2019 10:27:52 +0200 Subject: [PATCH] Fixed build failure caused by conversion warning with GCC-5.4 (#2839) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit JerryScript-DCO-1.0-Signed-off-by: László Langó llango.u-szeged@partner.samsung.com --- jerry-core/ecma/base/ecma-helpers-string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jerry-core/ecma/base/ecma-helpers-string.c b/jerry-core/ecma/base/ecma-helpers-string.c index 93c81c783..fa53d9796 100644 --- a/jerry-core/ecma/base/ecma-helpers-string.c +++ b/jerry-core/ecma/base/ecma-helpers-string.c @@ -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 */