summaryrefslogtreecommitdiff
path: root/decoder/ff_csplit.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-08-09 01:36:36 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-08-09 01:36:36 -0400
commitb6474b5cdbf870725371b32670c9dc28671e394c (patch)
treef52dde8c7aec577e5ba92bc1375845b4846bbc65 /decoder/ff_csplit.cc
parent454ef7fd3a37a7d3105d6bf0f5750047979da2d4 (diff)
fixes for new word api
Diffstat (limited to 'decoder/ff_csplit.cc')
-rw-r--r--decoder/ff_csplit.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ff_csplit.cc b/decoder/ff_csplit.cc
index c9ed996c..252dbf8c 100644
--- a/decoder/ff_csplit.cc
+++ b/decoder/ff_csplit.cc
@@ -88,7 +88,7 @@ void BasicCSplitFeaturesImpl::TraversalFeaturesImpl(
features->set_value(letters_sq_, (edge.j_ - edge.i_) * (edge.j_ - edge.i_));
features->set_value(letters_sqrt_, sqrt(edge.j_ - edge.i_));
const WordID word = edge.rule_->e_[1];
- const char* sword = TD::Convert(word);
+ const char* sword = TD::Convert(word).c_str();
const int len = strlen(sword);
int cur = 0;
int chars = 0;