Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2012-10-18 21:54:38 +0400
committerKenneth Heafield <github@kheafield.com>2012-10-18 21:54:38 +0400
commit39664ac8f48c44fa4a81ff63de7ff2d31a956b5e (patch)
treef0928f6ff3f63bb1f68ca0b08009173a9968d85d /search/vertex.cc
parent05e91def21d90d848b5f804f2fc9bd974bc496df (diff)
Support arbitrary arity
Also, some windows fixes in util.
Diffstat (limited to 'search/vertex.cc')
-rw-r--r--search/vertex.cc4
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) {