Skip to content

Commit 0b0ef2d

Browse files
committed
format
1 parent e911813 commit 0b0ef2d

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

core/iwasm/interpreter/wasm_interp_fast.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ typedef float64 CellType_F64;
6767
})
6868

6969
#define shared_heap_addr_app_to_native(app_addr, native_addr) \
70-
native_addr = shared_heap_base_addr + ((app_addr) - shared_heap_start_off)
70+
native_addr = shared_heap_base_addr + ((app_addr)-shared_heap_start_off)
7171

7272
#define CHECK_SHARED_HEAP_OVERFLOW(app_addr, bytes, native_addr) \
7373
if (app_addr_in_shared_heap(app_addr, bytes)) \

samples/shared-heap/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ thread1_callback(void *arg)
8484
buf = wasm_runtime_addr_app_to_native(module_inst, argv[0]);
8585

8686
printf("wasm app1 send buf: %s\n\n", buf);
87-
if (!bh_post_msg(queue, 1, buf, 1024 * (i+1))) {
87+
if (!bh_post_msg(queue, 1, buf, 1024 * (i + 1))) {
8888
printf("Failed to post message to queue\n");
8989
wasm_runtime_shared_heap_free(module_inst, argv[0]);
9090
break;

0 commit comments

Comments
 (0)