mirror of https://gitee.com/bigwinds/arangodb
Fix warning about incompatible types in KShortestPathsFinder (#8936)
This commit is contained in:
parent
75bab782bb
commit
65d090be9d
|
@ -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();
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue