Skip to content

Commit e71005e

Browse files
committed
fix typo
1 parent 3f21073 commit e71005e

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

core/iwasm/common/gc/gc_type.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ wasm_reftype_is_subtype_of(uint8 type1, const WASMRefType *ref_type1,
11451145
return true;
11461146
else {
11471147
int32 heap_type = ref_type1->ref_ht_common.heap_type;
1148-
// We dont care whether type2 is nullable or not. So
1148+
// We don't care whether type2 is nullable or not. So
11491149
// we normalize it into its related one-byte type.
11501150
if (type2 == REF_TYPE_HT_NULLABLE
11511151
|| type2 == REF_TYPE_HT_NON_NULLABLE) {

core/iwasm/libraries/debug-engine/debug_engine.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,7 @@ wasm_debug_instance_get_obj_mem(WASMDebugInstance *instance, uint64 offset,
743743
module_inst = (WASMModuleInstance *)exec_env->module_inst;
744744

745745
if (offset + *size > module_inst->module->load_size) {
746-
LOG_VERBOSE("wasm_debug_instance_get_data_mem size over flow!\n");
746+
LOG_VERBOSE("wasm_debug_instance_get_data_mem size overflow!\n");
747747
*size = module_inst->module->load_size >= offset
748748
? module_inst->module->load_size - offset
749749
: 0;
@@ -797,7 +797,7 @@ wasm_debug_instance_get_linear_mem(WASMDebugInstance *instance, uint64 offset,
797797
num_bytes_per_page = memory->num_bytes_per_page;
798798
linear_mem_size = num_bytes_per_page * memory->cur_page_count;
799799
if (offset + *size > linear_mem_size) {
800-
LOG_VERBOSE("wasm_debug_instance_get_linear_mem size over flow!\n");
800+
LOG_VERBOSE("wasm_debug_instance_get_linear_mem size overflow!\n");
801801
*size = linear_mem_size >= offset ? linear_mem_size - offset : 0;
802802
}
803803
bh_memcpy_s(buf, (uint32)*size, memory->memory_data + offset,
@@ -830,7 +830,7 @@ wasm_debug_instance_set_linear_mem(WASMDebugInstance *instance, uint64 offset,
830830
num_bytes_per_page = memory->num_bytes_per_page;
831831
linear_mem_size = num_bytes_per_page * memory->cur_page_count;
832832
if (offset + *size > linear_mem_size) {
833-
LOG_VERBOSE("wasm_debug_instance_get_linear_mem size over flow!\n");
833+
LOG_VERBOSE("wasm_debug_instance_get_linear_mem size overflow!\n");
834834
*size = linear_mem_size >= offset ? linear_mem_size - offset : 0;
835835
}
836836
bh_memcpy_s(memory->memory_data + offset, (uint32)*size, buf,

tests/unit/memory64/memory64_atomic_test.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class memory64_atomic_test_suite : public testing::TestWithParam<RunningMode>
6060
return false;
6161
}
6262

63-
void destory_exec_env()
63+
void destroy_exec_env()
6464
{
6565
wasm_runtime_destroy_exec_env(exec_env);
6666
wasm_runtime_deinstantiate(module_inst);
@@ -109,7 +109,7 @@ class memory64_atomic_test_suite : public testing::TestWithParam<RunningMode>
109109
virtual void TearDown()
110110
{
111111
if (cleanup) {
112-
destory_exec_env();
112+
destroy_exec_env();
113113
wasm_runtime_destroy();
114114
cleanup = false;
115115
}
@@ -339,8 +339,8 @@ TEST_P(memory64_atomic_test_suite, atomic_opcodes_i64_rmw_cmpxchg)
339339
PUT_I64_TO_ADDR(wasm_argv + 2, 0x100F0E0D0C0B0A09);
340340
// new
341341
PUT_I64_TO_ADDR(wasm_argv + 4, 0xdeadcafebeefdead);
342-
ASSERT_TRUE(wasm_runtime_call_wasm(exec_env, func_map["i64_atomic_rmw_cmpxchg"],
343-
6, wasm_argv));
342+
ASSERT_TRUE(wasm_runtime_call_wasm(
343+
exec_env, func_map["i64_atomic_rmw_cmpxchg"], 6, wasm_argv));
344344
i64 = 0x100F0E0D0C0B0A09;
345345
ASSERT_EQ(i64, GET_U64_FROM_ADDR(wasm_argv));
346346

0 commit comments

Comments
 (0)