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: avoid spurious f64 cast and comparison #540

Merged
merged 1 commit into from
Jun 28, 2024

Conversation

lucab
Copy link
Contributor

@lucab lucab commented Jun 26, 2024

This tweaks break_words() logic by dropping a cast to f64 and a float comparison, directly using the integer width value instead.

@lucab
Copy link
Contributor Author

lucab commented Jun 27, 2024

/cc @mgeisler for review.

@mgeisler
Copy link
Owner

Thanks, looks great!

Let me fix the broken test so I can merge this.

This tweaks `break_words()` logic by dropping a cast to f64
and a float comparison, directly using the integer width value
instead.
@mgeisler mgeisler enabled auto-merge June 28, 2024 14:17
@mgeisler mgeisler merged commit 73241aa into mgeisler:master Jun 28, 2024
25 checks passed
@lucab lucab deleted the ups/avoid-float-cast branch June 28, 2024 16:14
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.

None yet

2 participants