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

Avoid overflow in operations due to +1 or -1. #11

Open
ptal opened this issue Apr 14, 2015 · 0 comments
Open

Avoid overflow in operations due to +1 or -1. #11

ptal opened this issue Apr 14, 2015 · 0 comments
Labels

Comments

@ptal
Copy link
Owner

ptal commented Apr 14, 2015

For example in Difference:

let left = self.intersection(&Interval::min_lb(other.lower() - Bound::one()));

It can overflow if the lower bound is unsigned and equals 0, it is avoidable.

@ptal ptal added the bug label Apr 14, 2015
@ptal ptal mentioned this issue Apr 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant