wasm-micro-runtime/language-bindings/go/wamr
Yo Han Joo b4941b0cde
Go binding: Change C.long to C.int64_t when call wasm_runtime_set_wasi_args_ex (#3235)
- Change `C.long` to `C.int64_t` due to error:
```sh
./module.go:119:64: cannot use _Ctype_long(stdinfd) (value of type _Ctype_long) as _Ctype_longlong value in variable declaration
./module.go:120:43: cannot use _Ctype_long(stdoutfd) (value of type _Ctype_long) as _Ctype_longlong value in variable declaration
./module.go:120:60: cannot use _Ctype_long(stderrfd) (value of type _Ctype_long) as _Ctype_longlong value in variable declaration
```
- Change offset from `uint32` to `uint64` due to casting error

ps.
https://github.com/bytecodealliance/wasm-micro-runtime/issues/3220
https://stackoverflow.com/questions/70243683/how-to-convert-c-uint64-t-to-cgo-consistently-across-os
2024-03-22 10:45:14 +08:00
..
packaged Fix go language binding build on macos arm64 (#1875) 2023-01-10 09:15:49 +08:00
cgo.go Implement Go language binding (#1196) 2022-06-01 11:35:05 +08:00
instance_test.go Implement Go language binding (#1196) 2022-06-01 11:35:05 +08:00
instance.go Remove unused argument in wasm_runtime_lookup_function and refactor WASMModuleInstance (#3218) 2024-03-13 12:28:45 +08:00
module_test.go Implement Go language binding (#1196) 2022-06-01 11:35:05 +08:00
module.go Go binding: Change C.long to C.int64_t when call wasm_runtime_set_wasi_args_ex (#3235) 2024-03-22 10:45:14 +08:00
runtime_test.go Implement Go language binding (#1196) 2022-06-01 11:35:05 +08:00
runtime.go Implement Go language binding (#1196) 2022-06-01 11:35:05 +08:00