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 size bug and add test for it #7

Merged
merged 1 commit into from
Jul 10, 2024
Merged

Conversation

dspyz-matician
Copy link
Contributor

When list.remove fails, it decrements the size anyway. This can potentially cause an underflow and other bugs as well.

This PR makes it so size is only decremented in the event an element is present

@Fairglow Fairglow merged commit f7db1b0 into Fairglow:main Jul 10, 2024
1 check passed
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