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

[Core] Don't divide zero by zero #200

Merged
merged 2 commits into from
Jan 14, 2025
Merged

Conversation

mikejsavage
Copy link
Contributor

I was getting crashes here with floating point exceptions enabled.

This may not be a good fix but at least the resulting layout looks fine again, I can put together a repro if you think this is the wrong way to do it.

@nicbarker nicbarker changed the title Don't divide zero by zero [Core] Don't divide zero by zero Jan 14, 2025
@nicbarker
Copy link
Owner

Hey @mikejsavage, thanks for the good catch! I actually noticed another bug related to downsizing when I was investigating thing, would you be able to try out my change and confirm it fixes your bug correctly? 🙂

@nicbarker nicbarker added bug Something isn't working Attempted Fix A fix has been implemented but not yet confirmed by the issue reporter. labels Jan 14, 2025
@mikejsavage
Copy link
Contributor Author

mikejsavage commented Jan 14, 2025

Yep your change works too, and produces identical results to what I tried

@nicbarker
Copy link
Owner

Awesome! Will merge this now.

@nicbarker nicbarker merged commit cd82ce6 into nicbarker:main Jan 14, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Attempted Fix A fix has been implemented but not yet confirmed by the issue reporter. bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants