Skip to content

Commit 55c1774

Browse files
committed
format
1 parent f3b81c0 commit 55c1774

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

core/iwasm/common/wasm_memory.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1366,7 +1366,8 @@ wasm_check_app_addr_and_convert(WASMModuleInstance *module_inst, bool is_str,
13661366

13671367
/* The whole string must be in the shared heap */
13681368
str = (const char *)native_addr;
1369-
str_end = (const char *)shared_heap_base_addr_adj + shared_heap_end_off + 1;
1369+
str_end =
1370+
(const char *)shared_heap_base_addr_adj + shared_heap_end_off + 1;
13701371
while (str < str_end && *str != '\0')
13711372
str++;
13721373
if (str == str_end) {

core/iwasm/compilation/aot_llvm.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1648,9 +1648,9 @@ create_shared_heap_info(AOTCompContext *comp_ctx, AOTFuncContext *func_ctx)
16481648

16491649
/* if there is attached shared heap(s), the value will be valid start_off-1,
16501650
* otherwise it will be UINT32_MAX/UINT64_MAX, so during the bounds checks,
1651-
* when has attached shared heap:
1652-
* offset > start_off - 1 => offset >= start_off
1653-
* when no attached shared heap:
1651+
* when has attached shared heap:
1652+
* offset > start_off - 1 => offset >= start_off
1653+
* when no attached shared heap:
16541654
* offset > UINT32_MAX/UINT64_MAX is always false
16551655
* */
16561656
if (!(func_ctx->shared_heap_head_start_off = LLVMBuildSelect(

0 commit comments

Comments
 (0)