[CP-SAT] fix #4458; fix overflow in cumulative propagator

This commit is contained in:
Laurent Perron
2024-12-10 14:54:30 +01:00
parent 0781ae7a85
commit 9803ccb457
6 changed files with 22 additions and 10 deletions

View File

@@ -713,7 +713,7 @@ std::vector<std::pair<int, int>> FindPartialRectangleIntersectionsAlsoEmpty(
//
// If a pair {i, j} is returned, we will have i < j, and no intersection in
// the subset of rectanges in [0, j).
absl::optional<std::pair<int, int>> FindOneIntersectionIfPresent(
std::optional<std::pair<int, int>> FindOneIntersectionIfPresent(
absl::Span<const Rectangle> rectangles);
} // namespace sat