summaryrefslogtreecommitdiff
path: root/decoder/ff_wordalign.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ff_wordalign.cc')
-rw-r--r--decoder/ff_wordalign.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ff_wordalign.cc b/decoder/ff_wordalign.cc
index decdf9bc..1491819d 100644
--- a/decoder/ff_wordalign.cc
+++ b/decoder/ff_wordalign.cc
@@ -549,7 +549,7 @@ void IdentityCycleDetector::TraversalFeaturesImpl(const SentenceMetadata& smeta,
static map<WordID, bool> big_enough;
map<WordID,bool>::iterator it = big_enough_.find(word);
if (it == big_enough_.end()) {
- out_is_identity = big_enough_[word] = strlen(TD::Convert(word)) >= length_min_;
+ out_is_identity = big_enough_[word] = TD::Convert(word).size() >= length_min_;
} else {
out_is_identity = it->second;
}