1
0
Fork 0

Fix warning about incompatible types in KShortestPathsFinder (#8936)

This commit is contained in:
Markus Pfeiffer 2019-05-08 13:29:51 +00:00 committed by Michael Hackstein
parent 75bab782bb
commit 65d090be9d
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ bool KShortestPathsFinder::computeNextShortestPath(Path& result) {
auto& lastShortestPath = _shortestPaths.back();
bool available = false;
for (size_t i = lastShortestPath._branchpoint; i < lastShortestPath.length() - 1; ++i) {
for (size_t i = lastShortestPath._branchpoint; i + 1 < lastShortestPath.length(); ++i) {
auto& spur = lastShortestPath._vertices.at(i);
forbiddenVertices.clear();

View File

@ -70,7 +70,7 @@ class KShortestPathsFinder : public ShortestPathFinder {
// Where this path branched off the previous shortest path
// This is an optimisation because we only need to consider
// spur paths from after the branch point
ssize_t _branchpoint;
size_t _branchpoint;
void clear() {
_vertices.clear();