Skip to content

Commit

Permalink
Minor fixes for Go bindings (#2676)
Browse files Browse the repository at this point in the history
  • Loading branch information
benozol authored Oct 30, 2023
1 parent 4b1a6e5 commit 613c7ca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion language-bindings/go/go.mod
Original file line number Diff line number Diff line change
@@ -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

Expand Down
2 changes: 1 addition & 1 deletion language-bindings/go/samples/test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 2 additions & 0 deletions language-bindings/go/wamr/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 613c7ca

Please sign in to comment.