Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
xujuntwt95329 committed Nov 26, 2023
1 parent 91ec5d2 commit 170f376
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions core/iwasm/common/gc/gc_common.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ wasm_ref_type_normalize(wasm_ref_type_t *ref_type)
ref_type->nullable = false;
}
else {
if ((heap_type > HEAP_TYPE_NOFUNC || heap_type < HEAP_TYPE_ARRAY)
if ((heap_type <= HEAP_TYPE_NOFUNC && heap_type >= HEAP_TYPE_ARRAY)
#if WASM_ENABLE_STRINGREF != 0
&& heap_type != HEAP_TYPE_STRINGREF
&& heap_type != HEAP_TYPE_STRINGVIEWWTF8
&& heap_type != HEAP_TYPE_STRINGVIEWWTF16
&& heap_type != HEAP_TYPE_STRINGVIEWITER
|| heap_type == HEAP_TYPE_STRINGREF
|| heap_type == HEAP_TYPE_STRINGVIEWWTF8
|| heap_type == HEAP_TYPE_STRINGVIEWWTF16
|| heap_type == HEAP_TYPE_STRINGVIEWITER
#endif
) {
ref_type->value_type =
Expand Down
2 changes: 1 addition & 1 deletion core/iwasm/interpreter/wasm_loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -1399,7 +1399,7 @@ load_type_section(const uint8 *buf, const uint8 *buf_end, WASMModule *module,
}
}
}
#else /* else of WASM_ENABLE_GC == 0 */
#else /* else of WASM_ENABLE_GC == 0 */
for (i = 0; i < type_count; i++) {
uint32 super_type_count = 0, parent_type_idx = (uint32)-1;
bool is_sub_final = true;
Expand Down

0 comments on commit 170f376

Please sign in to comment.