mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-05-07 12:16:24 +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
|
go 1.15
|
||||||
|
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"gitlab.alipay-inc.com/TNT_Runtime/ant-runtime/bindings/go/wamr"
|
"github.com/bytecodealliance/wasm-micro-runtime/language-bindings/go/wamr"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -272,7 +272,9 @@ func (self *Instance) CallFuncV(funcName string,
|
||||||
for i = 0; i < result_count; i++ {
|
for i = 0; i < result_count; i++ {
|
||||||
switch result_types[i] {
|
switch result_types[i] {
|
||||||
case C.WASM_I32:
|
case C.WASM_I32:
|
||||||
|
fallthrough
|
||||||
case C.WASM_FUNCREF:
|
case C.WASM_FUNCREF:
|
||||||
|
fallthrough
|
||||||
case C.WASM_ANYREF:
|
case C.WASM_ANYREF:
|
||||||
i32 := (int32)(argv[argc])
|
i32 := (int32)(argv[argc])
|
||||||
results[i] = i32
|
results[i] = i32
|
||||||
|
|
Loading…
Reference in New Issue
Block a user