1
0
Fork 0

Fixed ASSERTION guarding undefined behaviour on Mac. In some cases the assertion did throw.

This commit is contained in:
Michael Hackstein 2016-09-12 22:10:30 +02:00
parent be0aa9e84d
commit fee42eef3f
1 changed files with 5 additions and 4 deletions

View File

@ -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);