summaryrefslogtreecommitdiff
path: root/decoder/ff_factory.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-23 23:10:34 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-23 23:10:34 +0000
commiteac7943a058db20a9e6a50fbbd8ff87b0ce56fc4 (patch)
tree4c3d2bd45ce252e33d549558a86445cb0c61e417 /decoder/ff_factory.cc
parent2cb75daa1e294bcffa49b9e82359bcae61938ded (diff)
strip debug param from feature spec; debug info on from_fsa Init
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@393 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'decoder/ff_factory.cc')
-rw-r--r--decoder/ff_factory.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ff_factory.cc b/decoder/ff_factory.cc
index a6d834e0..cc07b2f2 100644
--- a/decoder/ff_factory.cc
+++ b/decoder/ff_factory.cc
@@ -35,7 +35,7 @@ shared_ptr<FeatureFunction> FFRegistry::Create(const string& ffname, const strin
int pl=debug_pre.size();
bool space=false;
std::string p=param;
- bool debug=match_begin(p,debug_pre)&&(p.size()==pl||(space=p[pl]==' '));
+ bool debug=match_begin(p,debug_pre)&&(p.size()==pl||(space=(p[pl]==' '));
if (debug) {
p.erase(0,debug_pre.size()+space);
cerr<<"debug enabled for "<<ffname<< " - rest of param='"<<p<<"'\n";