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

Prevent the hashing function being called when capacity is zero #2802

Merged
merged 2 commits into from
Aug 18, 2024

Conversation

advikkabra
Copy link
Collaborator

When the capacity is zero, the hashing function tries to run a modulo operation with zero which leads to a floating point exception. During a membership check, I check if capacity is zero, and return false if it is.

@czgdp1807 czgdp1807 enabled auto-merge August 16, 2024 13:39
@czgdp1807 czgdp1807 merged commit a104c30 into lcompilers:main Aug 18, 2024
18 checks 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.

3 participants