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

Properly propagate error in bit_truncate_relative #285

Merged
merged 2 commits into from
Dec 18, 2024

Conversation

ljgray
Copy link
Contributor

@ljgray ljgray commented Dec 18, 2024

Negative values would end up trying to truncate against negative error, which would always return -0.0. This makes sure that the error value is positive.

@ljgray ljgray force-pushed the ljg/bit-truncate-relative-negative branch from 4e2256a to e2edd4a Compare December 18, 2024 00:40
Copy link
Contributor

@ssiegelx ssiegelx left a comment

Choose a reason for hiding this comment

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

Nice catch

@ljgray ljgray merged commit d86f62c into master Dec 18, 2024
7 checks passed
@ljgray ljgray deleted the ljg/bit-truncate-relative-negative branch December 18, 2024 01:54
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