mirror of https://gitee.com/bigwinds/arangodb
Fixed ASSERTION guarding undefined behaviour on Mac. In some cases the assertion did throw.
This commit is contained in:
parent
be0aa9e84d
commit
fee42eef3f
|
@ -53,11 +53,12 @@ bool DepthFirstEnumerator::next() {
|
|||
_edgeCursors.emplace(cursor);
|
||||
}
|
||||
} else {
|
||||
TRI_ASSERT(!_enumeratedPath.edges.empty());
|
||||
if (!_enumeratedPath.edges.empty()) {
|
||||
// This path is at the end. cut the last step
|
||||
_enumeratedPath.vertices.pop_back();
|
||||
_enumeratedPath.edges.pop_back();
|
||||
}
|
||||
}
|
||||
|
||||
while (!_edgeCursors.empty()) {
|
||||
TRI_ASSERT(_edgeCursors.size() == _enumeratedPath.edges.size() + 1);
|
||||
|
|
Loading…
Reference in New Issue