summaryrefslogtreecommitdiff
path: root/gi/pf/cfg_wfst_composer.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 /gi/pf/cfg_wfst_composer.cc
parent454ef7fd3a37a7d3105d6bf0f5750047979da2d4 (diff)
fixes for new word api
Diffstat (limited to 'gi/pf/cfg_wfst_composer.cc')
-rw-r--r--gi/pf/cfg_wfst_composer.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gi/pf/cfg_wfst_composer.cc b/gi/pf/cfg_wfst_composer.cc
index 19c0875d..21d5ec5b 100644
--- a/gi/pf/cfg_wfst_composer.cc
+++ b/gi/pf/cfg_wfst_composer.cc
@@ -410,7 +410,7 @@ class CFG_WFSTComposerImpl {
std::cerr << "TERMINAL SYMBOL: " << TD::Convert(git->first) << endl;
abort();
}
- std::vector<std::pair<const WFSTNode*, TRulePtr> > extensions = r->ExtendInput(atoi(TD::Convert(git->first)));
+ std::vector<std::pair<const WFSTNode*, TRulePtr> > extensions = r->ExtendInput(atoi(TD::Convert(git->first).c_str()));
for (unsigned nsi = 0; nsi < extensions.size(); ++nsi) {
const WFSTNode* next_r = extensions[nsi].first;
const EGrammarNode* next_dot = &git->second;