!144 黄蓝区同步代码差异

Merge pull request !144 from tangbin/master
This commit is contained in:
openharmony_ci 2024-07-26 08:06:15 +00:00 committed by Gitee
commit 179dda9c47
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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;
}
}