diff options
author | Kenneth Heafield <github@kheafield.com> | 2012-10-18 21:54:38 +0400 |
---|---|---|
committer | Kenneth Heafield <github@kheafield.com> | 2012-10-18 21:54:38 +0400 |
commit | 39664ac8f48c44fa4a81ff63de7ff2d31a956b5e (patch) | |
tree | f0928f6ff3f63bb1f68ca0b08009173a9968d85d /search/vertex.cc | |
parent | 05e91def21d90d848b5f804f2fc9bd974bc496df (diff) |
Support arbitrary arity
Also, some windows fixes in util.
Diffstat (limited to 'search/vertex.cc')
-rw-r--r-- | search/vertex.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/search/vertex.cc b/search/vertex.cc index ed3631352..11f4631fa 100644 --- a/search/vertex.cc +++ b/search/vertex.cc @@ -21,9 +21,9 @@ struct GreaterByBound : public std::binary_function<const VertexNode *, const Ve void VertexNode::SortAndSet(ContextBase &context, VertexNode **parent_ptr) { if (Complete()) { - assert(end_); + assert(end_.Valid()); assert(extend_.empty()); - bound_ = end_->Bound(); + bound_ = end_.GetScore(); return; } if (extend_.size() == 1 && parent_ptr) { |