Hi,
I am getting a weird runtime error when formatting a large int64 using strconv.FormatInt on my Arduino Nano. This problem does not exist in Go. I am using go version go1.14.5 darwin/amd64.
The following code snippet consistently produces the issue.
package main
import (
"strconv"
"time"
)
func main() {
for {
var now int64 = 6854775807
println(strconv.FormatInt(now, 10))
time.Sleep(time.Second)
}
}
Output:
panic: runtime error: index out of range
panic: runtime error: index out of range