Closed radkomih closed 4 months ago
Thanks for the bug report. I'll see what I can do.
Can you please try https://github.com/tinygo-org/tinygo/pull/4041 and see if that fixes your problem? (It solves your test case, but I want to make sure it works on your real code base.)
@dgryski it works for my case thank you ❤️
I have encountered an issue and was able to create a small example to reproduce it. When running the code with standard Go, it prints out the value '13', however, with TinyGo, it prints out '35008' instead.
Env:
tinygo version 0.30.0 darwin/amd64 (using go version go1.21.0 and LLVM version 16.0.1
tinygo run -target=wasi main.go