Fix codeql compilation error (#3461)
Update OS to ubuntu-22.04 and install `libgcc-12-dev lib32gcc-12-dev` instead of `libgcc-11-dev lib32gcc-11-dev`. And fix a bh_assert condition typo error. ps. https://github.com/bytecodealliance/wasm-micro-runtime/actions/runs/9183310069/job/25253782329
This commit is contained in:
@ -926,8 +926,8 @@ instantiate_struct_global_recursive(WASMModule *module,
|
||||
wasm_type = module->types[heap_type];
|
||||
|
||||
bh_assert(wasm_type->type_flag == WASM_TYPE_STRUCT
|
||||
&& wasm_type->type_flag == WASM_TYPE_ARRAY
|
||||
&& wasm_type->type_flag == WASM_TYPE_FUNC);
|
||||
|| wasm_type->type_flag == WASM_TYPE_ARRAY
|
||||
|| wasm_type->type_flag == WASM_TYPE_FUNC);
|
||||
|
||||
if (wasm_type->type_flag == WASM_TYPE_STRUCT) {
|
||||
WASMStructNewInitValues *init_values1 =
|
||||
|
||||
Reference in New Issue
Block a user