mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-09 13:16:26 +00:00
Fix a WASM_OP_SET_LOCAL type check issue (#205)
This commit is contained in:
parent
c6042c45a3
commit
e07381c4a8
|
@ -2072,8 +2072,8 @@ wasm_interp_call_func_bytecode(WASMModuleInstance *module,
|
||||||
|| local_type == VALUE_TYPE_F32) {
|
|| local_type == VALUE_TYPE_F32) {
|
||||||
*(int32*)(frame_lp + local_offset) = frame_lp[addr1];
|
*(int32*)(frame_lp + local_offset) = frame_lp[addr1];
|
||||||
}
|
}
|
||||||
else if (local_type == VALUE_TYPE_I32
|
else if (local_type == VALUE_TYPE_I64
|
||||||
|| local_type == VALUE_TYPE_F32) {
|
|| local_type == VALUE_TYPE_F64) {
|
||||||
PUT_I64_TO_ADDR((uint32*)(frame_lp + local_offset),
|
PUT_I64_TO_ADDR((uint32*)(frame_lp + local_offset),
|
||||||
GET_I64_FROM_ADDR(frame_lp + addr1));
|
GET_I64_FROM_ADDR(frame_lp + addr1));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user