summaryrefslogtreecommitdiff
path: root/decoder/ff_lm.cc
diff options
context:
space:
mode:
Diffstat (limited to 'decoder/ff_lm.cc')
-rw-r--r--decoder/ff_lm.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/decoder/ff_lm.cc b/decoder/ff_lm.cc
index 8333bf7b..03dc2054 100644
--- a/decoder/ff_lm.cc
+++ b/decoder/ff_lm.cc
@@ -322,8 +322,8 @@ class LanguageModelImpl {
//TODO: make sure this is correct.
int len = rule.ELength(); // use a gap for each variable
buffer_.resize(len + 1);
- buffer_[len] = kNONE;
WordID * const rend=&buffer_[0]+len;
+ *rend=kNONE;
WordID *r=rend; // append by *--r = x
const vector<WordID>& e = rule.e();
//SRILM is reverse order null terminated