Skip to content

Fix issue #15826. #16778

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

Merged
merged 1 commit into from
Aug 31, 2014
Merged

Fix issue #15826. #16778

merged 1 commit into from
Aug 31, 2014

Conversation

jbcrail
Copy link
Contributor

@jbcrail jbcrail commented Aug 27, 2014

The implemented fix rounds half-way cases away from zero as described in the original comments.

This rounding algorithm is sometimes called arithmetic rounding. It is described further here: http://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero

I also added several new tests to prevent regressions.

@lilyball
Copy link
Contributor

This needs a commit message that actually describes what it's doing.

@jbcrail
Copy link
Contributor Author

jbcrail commented Aug 27, 2014

Oops. I added a comment describing the commit. Thanks!

@jbcrail jbcrail force-pushed the fix-issue-15826 branch 3 times, most recently from d8e287e to 89dbc27 Compare August 28, 2014 02:38
The implemented fix rounds half-way cases away from zero as described in
the original comments.

This rounding algorithm is sometimes called arithmetic rounding. It is
described further here:
http://en.wikipedia.org/wiki/Rounding#Round_half_away_from_zero

I also added several new tests to prevent regressions.
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Aug 29, 2014
alexcrichton added a commit to alexcrichton/rust that referenced this pull request Aug 31, 2014
@bors bors merged commit 687db5d into rust-lang:master Aug 31, 2014
@jbcrail jbcrail deleted the fix-issue-15826 branch August 31, 2014 15:50
matthiaskrgr pushed a commit to matthiaskrgr/rust that referenced this pull request Mar 10, 2024
Update `rustc_pattern_analysis` to 0.42.0

There was an important API change in 0.41.0, and (hopefully) a fix for rust-lang/rust-analyzer#16774 in 0.42.0.
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.

4 participants