mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2024-11-26 15:32:05 +00:00
Minor fixes for Go bindings (#2676)
This commit is contained in:
parent
4b1a6e5017
commit
613c7ca48f
|
@ -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
|
||||
|
||||
|
|
|
@ -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"
|
||||
)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user