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: check for empty tier slices and use int for slice indexes #11675

Merged
merged 1 commit into from
Sep 11, 2024

Conversation

EVODelavega
Copy link
Contributor

Quick fix for panic. Since a slice index is specified either untyped, or its core type must be an integer, non-negative and representable by a value of type int, decided it best to have i be of type int, and only convert it to uint64 when assigning the tier number pointer

@jeremyletang jeremyletang merged commit 1faa950 into develop Sep 11, 2024
16 checks passed
@jeremyletang jeremyletang deleted the fix-underflow branch September 11, 2024 18:01
jeremyletang added a commit that referenced this pull request Sep 12, 2024
fix: check for empty tier slices and use int for slice indexes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants