-
Notifications
You must be signed in to change notification settings - Fork 0
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
[P3-Float-to-Int Conversion] f32::to_int_unchecked
#13
Comments
f32:: to_int_unchecked
f32:: to_int_unchecked
f32::to_int_unchecked
Failed a check: Looking into it Check 14: <f32 as convert::num::FloatToInt>::to_int_unchecked.arithmetic_overflow.2 |
Guess: The contract is incorrect. Maybe self::MIN and self::MAX refer to the max and min of the float type, not that of the resulting integer type. |
Distinct unreachables in f32->i8 result:
|
Official Repo Tracking Issue
Tasks :
library/core/src/num/xx.rs
IMP: comment with the branch name you will be working on, with its link.
Ref: https://github.com/rajathkotyal/verify-rust-std/blob/main/doc/src/challenges/0011-floats-ints.md
The text was updated successfully, but these errors were encountered: