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

Fix build on 32-bit platforms #845

Merged
merged 1 commit into from
Aug 31, 2024
Merged

Conversation

chrismarget-j
Copy link
Collaborator

Large like constants like AsnMax (4294967295) will overflow if passed as int to fmt.Sprintf() in our inline documentation.

This PR introduces type conversion so they're treated as uint32 in these cases.

@chrismarget-j chrismarget-j merged commit e41de26 into main Aug 31, 2024
1 check passed
@chrismarget-j chrismarget-j deleted the bug/844-constant-int-overflow branch August 31, 2024 00:57
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 this pull request may close these issues.

2 participants