diff --git a/jerry-core/ecma/base/ecma-helpers-string.c b/jerry-core/ecma/base/ecma-helpers-string.c index 21bfadc0df77c2f83bacaafdef5b4c7bc0984127..a40915f2a09e2b8dbb26dfd86c9de0685c554bd6 100755 --- a/jerry-core/ecma/base/ecma-helpers-string.c +++ b/jerry-core/ecma/base/ecma-helpers-string.c @@ -1811,7 +1811,7 @@ ecma_compare_ecma_strings_longpath_with_literal (const ecma_string_t *string1_p, } else { - JERRY_ASSERT (ECMA_STRING_GET_CONTAINER (string1_p) == ECMA_STRING_CONTAINER_HEAP_ASCII_STRING); + JERRY_ASSERT (ECMA_STRING_GET_CONTAINER (string1_p) == ECMA_STRING_CONTAINER_HEAP_LONG_UTF8_STRING); utf8_string1_size = ((ecma_long_utf8_string_t *) string1_p)->size; utf8_string2_p = ECMA_LONG_UTF8_STRING_GET_BUFFER (string2_p); @@ -1828,7 +1828,7 @@ ecma_compare_ecma_strings_longpath_with_literal (const ecma_string_t *string1_p, extern inline bool JERRY_ATTR_ALWAYS_INLINE ecma_compare_ecma_strings_with_literal (const ecma_string_t *string1_p, /**< ecma-string */ - const ecma_string_t *string2_p,\ + const ecma_string_t *string2_p, const lit_utf8_byte_t *chars_p) /**< ecma-string */ { JERRY_ASSERT (string1_p != NULL && string2_p != NULL); diff --git a/jerry-core/ecma/base/ecma-literal-storage.c b/jerry-core/ecma/base/ecma-literal-storage.c index 499ce16b20b9b0a4d62b4b2bcdef3568e988b491..15373c849d085605dae56fc828e64f392bcf7489 100755 --- a/jerry-core/ecma/base/ecma-literal-storage.c +++ b/jerry-core/ecma/base/ecma-literal-storage.c @@ -178,7 +178,7 @@ ecma_find_or_create_literal_string (const lit_utf8_byte_t *chars_p, /**< string empty_cpointer_p = string_list_p->values + i; } - if ((cached_literal == NULL) && empty_cpointer_p != NULL) { + if ((cached_literal == NULL) && (empty_cpointer_p != NULL)) { break; } }