From 1f0a2bb4581c7a02ab00ec123a30c92692931ca6 Mon Sep 17 00:00:00 2001 From: tangbin <2387440390@qq.com> Date: Fri, 26 Jul 2024 11:58:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E9=BB=84=E8=93=9D=E5=B7=AE?= =?UTF-8?q?=E5=BC=82=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: tangbin <2387440390@qq.com> --- jerry-core/ecma/base/ecma-helpers-string.c | 4 ++-- jerry-core/ecma/base/ecma-literal-storage.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/jerry-core/ecma/base/ecma-helpers-string.c b/jerry-core/ecma/base/ecma-helpers-string.c index 21bfadc0..a40915f2 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 499ce16b..15373c84 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; } } -- Gitee