Skip to content

Commit

Permalink
fix(intersection): fix unsigned subtraction (#5280)
Browse files Browse the repository at this point in the history
Signed-off-by: Mamoru Sobue <mamoru.sobue@tier4.jp>
  • Loading branch information
soblin authored Oct 12, 2023
1 parent 75debf0 commit 3cf0481
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions planning/behavior_velocity_intersection_module/src/util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,9 @@ std::optional<size_t> getFirstPointInsidePolygon(
if (is_in_lanelet) {
return std::make_optional<size_t>(i);
}
if (i == 0) {
break;
}
}
}
return std::nullopt;
Expand Down Expand Up @@ -517,6 +520,9 @@ getFirstPointInsidePolygons(
if (is_in_lanelet) {
break;
}
if (i == 0) {
break;
}
}
}
return std::nullopt;
Expand Down

0 comments on commit 3cf0481

Please sign in to comment.