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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
module gitlab.alipay-inc.com/TNT_Runtime/ant-runtime/bindings/go
module github.com/bytecodealliance/wasm-micro-runtime/language-bindings/go
go 1.15

View File

@ -6,7 +6,7 @@
package main
import (
"gitlab.alipay-inc.com/TNT_Runtime/ant-runtime/bindings/go/wamr"
"github.com/bytecodealliance/wasm-micro-runtime/language-bindings/go/wamr"
"fmt"
)

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