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

Bug/582 float nan inf #588

Merged
merged 3 commits into from
Jan 13, 2025
Merged

Bug/582 float nan inf #588

merged 3 commits into from
Jan 13, 2025

Conversation

aannleax
Copy link
Member

@aannleax aannleax commented Jan 10, 2025

This PR fixes a crash that happened when a computation results in infinity. This was caused by a mismatch of the definition for the floating point datavalue and our floating point wrappers for f32 and f64. They should now be aligned.

Fixes #582.

@aannleax aannleax added this to the Release 0.7.0 milestone Jan 10, 2025
@aannleax aannleax self-assigned this Jan 10, 2025
Copy link
Member

@mmarx mmarx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is mostly about the wording of comments and error messages, but you also missed checking for infinity at one point.

nemo-physical/src/datatypes/double.rs Outdated Show resolved Hide resolved
nemo-physical/src/datatypes/double.rs Outdated Show resolved Hide resolved
nemo-physical/src/datatypes/float.rs Outdated Show resolved Hide resolved
nemo-physical/src/datatypes/float.rs Outdated Show resolved Hide resolved
@mmarx mmarx added the bug Something isn't working label Jan 10, 2025
@aannleax aannleax requested a review from mmarx January 13, 2025 09:48
@aannleax aannleax merged commit 95057ad into main Jan 13, 2025
8 checks passed
@aannleax aannleax deleted the bug/582-float-nan-inf branch January 13, 2025 12:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Bug: Division with extreme numbers crashes
2 participants