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

Fixed some missed items[] comparisons to -1 after change to uint8 #2208

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

flagrama
Copy link

#2115 changed the type of items[] to uint8 making comparisons to -1 invalid because a unsigned integer can never be a negative number. Some of these were probably missed in that PR, but others likely got merged before it and broke implicitly once that PR was merged.

Existing PRs should also be checked for stale comparisons like these and fix them before merging.

@fenhl fenhl added Type: Bug Something isn't working Component: ASM/C Changes some internals of the ASM/C libraries Status: Needs Review Someone should be looking at it Status: Needs Testing Probably should be tested labels Apr 24, 2024
@fenhl fenhl removed the Status: Needs Review Someone should be looking at it label Apr 24, 2024
@flagrama flagrama changed the title Fixed some missed items[] comparisons to -1 after change to int8 Fixed some missed items[] comparisons to -1 after change to uint8 Apr 24, 2024
@fenhl fenhl removed the Status: Needs Testing Probably should be tested label Apr 24, 2024
@fenhl fenhl added this to the next milestone Apr 24, 2024
@fenhl fenhl merged commit e10cb81 into OoTRandomizer:Dev Apr 24, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: ASM/C Changes some internals of the ASM/C libraries Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants