anko
anko copied to clipboard
math/big error on arm
When attempting to build on arm, I get this:
src/github.com/mattn/anko/builtins/math/big/big.go:19: constant 4294967295 overflows int
and the build fails.
Could you please show me your code reproduce?
No code, just running go get github.com/mattn/anko
Hmm, it seems a bug of go/arm. could you please file issue on https://github.com/golang/go/issues/new ?
But I can do workaround like removing the part of line until go fix the issue. Could you please try to figure out what line should be removed.
Line 19 of big.go
Yes, it's only 1 line?
Yep
removed math.MaxPrec temporary (until fixing this go/arm issue), and I keep to open this issue until it. Thank you
@njaremko Could you please file your issue? https://github.com/golang/go/issues/new
This may not have been an issue with Go, nor with arm. Maybe this was just issue with a 32 bit system.
From Big: MaxPrec = math.MaxUint32 // largest (theoretically) supported precision; likely memory-limited
So a unit32 const was being put into a int which was an int32, which means the value was too big.
Maybe now everything will be fine now that we are using the new packages? I do not have a 32 bit system to test. Anyone have a 32 bit system to test?
@mattn any thoughts?