Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integer overflow when compiling for arm 32 arch #109

Closed
rbell13 opened this issue Mar 2, 2023 · 0 comments · Fixed by #115
Closed

Integer overflow when compiling for arm 32 arch #109

rbell13 opened this issue Mar 2, 2023 · 0 comments · Fixed by #115

Comments

@rbell13
Copy link

rbell13 commented Mar 2, 2023

Getting the following error compiling for arm32 raspberry pi:
/go/pkg/mod/github.com/wagslane/go-rabbitmq@v0.12.1/internal/dispatcher/dispatcher.go:48:18: cannot use maxRand - minRand (untyped int constant 9223372036854775807) as int value in argument to rand.Intn (overflows)

consider changing from MaxInt64 to MaxInt

@wagslane wagslane mentioned this issue Mar 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant