Skip to content

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

@ptal

Description

@ptal

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions