Skip to content

Fix mod_floor() for uint primitive types #8610

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

Closed
wants to merge 1 commit into from

Conversation

lilyball
Copy link
Contributor

mod_floor() was incorrectly defined for uint types as a / b instead of a % b.

@alexcrichton
Copy link
Member

Could you add some tests for this as well?

@lilyball
Copy link
Contributor Author

@alexcrichton Done

bors added a commit that referenced this pull request Aug 21, 2013
`mod_floor()` was incorrectly defined for uint types as `a / b` instead of `a % b`.
@bors bors closed this Aug 21, 2013
@lilyball lilyball deleted the mod_floor branch May 16, 2014 02:22
flip1995 pushed a commit to flip1995/rust that referenced this pull request Apr 7, 2022
…nst, r=xFrednet

Don't warn int-to-char transmutes in const contexts

changelog: Don't warn ``[`transmute_int_to_char`]`` in const contexts

fixes: rust-lang#8379
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.

3 participants