Minor fixes for Go bindings (#2676)

This commit is contained in:
Benedikt Becker
2023-10-30 06:50:48 +01:00
committed by GitHub
parent 4b1a6e5017
commit 613c7ca48f
3 changed files with 4 additions and 2 deletions

View File

@ -272,7 +272,9 @@ func (self *Instance) CallFuncV(funcName string,
for i = 0; i < result_count; i++ {
switch result_types[i] {
case C.WASM_I32:
fallthrough
case C.WASM_FUNCREF:
fallthrough
case C.WASM_ANYREF:
i32 := (int32)(argv[argc])
results[i] = i32