-
Notifications
You must be signed in to change notification settings - Fork 36
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
Overflow on absolute comparison of signed integers #52
Comments
pcpthm
changed the title
Overflow on signed integers
Overflow on absolute comparison of signed integers
Sep 24, 2019
More corner case: approx::abs_diff_ne!(-1, std::i32::MAX) won't overflow on subtraction but will be overflow on |
Oh huh, that's interesting. We actually implement these comparisons for integers? |
Right, seems like it's here: Lines 35 to 87 in 0527afe
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected behavior: Runs fine.
Actual behavior:
thread 'main' panicked at 'attempt to subtract with overflow'
.The text was updated successfully, but these errors were encountered: