Steps to Reproduce
Hi. I am using crypto in my project and get the following error when trying to compile for 32-bit arm architecture:
mod/go.step.sm/crypto@v0.59.0/internal/utils/convert.go:33:18: cannot convert math.MaxUint32 (untyped int constant 4294967295) to type T
Your Environment
- OS - 32-bit Debian
- Version - ANY
Expected Behavior
Should normally compile for both 64-bit and 32-bit architectures.
Actual Behavior
Compilation error for 32-bit arm architecture.
Additional Context
math.MaxUint32 is an untyped integer constant (1<<32 - 1) that defaults to type int in this context that can only hold up to 1<<31 - 1.
Contributing
Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).