summaryrefslogtreecommitdiff
path: root/decoder/ff_lm.cc
diff options
context:
space:
mode:
authorgraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-07 14:00:28 +0000
committergraehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f>2010-07-07 14:00:28 +0000
commit946f7569a487209a35567e804d92edd1a84f2619 (patch)
treecd82003e2ffaaa0025773193e6d17733340b1ecc /decoder/ff_lm.cc
parent14a368e95cb444946d15bd018f400eeb94f6896e (diff)
get
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@172 ec762483-ff6d-05da-a07a-a48fb63a330f
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