Fix wrong assertion size in CompressedEdgeContainer::GetLastEdgeSourceID

This commit is contained in:
Lauren Budorick 2016-05-03 11:03:15 -07:00 committed by Patrick Niklaus
parent 08248e3853
commit d8acf76f2d
No known key found for this signature in database
GPG Key ID: E426891B5F978B1B

View File

@ -275,7 +275,7 @@ NodeID CompressedEdgeContainer::GetLastEdgeTargetID(const EdgeID edge_id) const
NodeID CompressedEdgeContainer::GetLastEdgeSourceID(const EdgeID edge_id) const
{
const auto &bucket = GetBucketReference(edge_id);
BOOST_ASSERT(bucket.size() >= 1);
BOOST_ASSERT(bucket.size() >= 2);
return bucket[bucket.size() - 2].node_id;
}
}