diff options
author | heafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-08 14:59:54 +0400 |
---|---|---|
committer | heafield <heafield@1f5c12ca-751b-0410-a591-d2e778427230> | 2011-10-08 14:59:54 +0400 |
commit | 71d0d389c5fd7f25b42c0ada827ada8dd800cfa4 (patch) | |
tree | 4a649c892eaf7b2bcaa8ee757ff90eda0d2e250b /kenlm | |
parent | 96c8ff4b15de341b5665caccd9c4566431b54910 (diff) |
Fix silly bug in merging
git-svn-id: https://mosesdecoder.svn.sourceforge.net/svnroot/mosesdecoder/trunk@4314 1f5c12ca-751b-0410-a591-d2e778427230
Diffstat (limited to 'kenlm')
-rw-r--r-- | kenlm/lm/trie_sort.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kenlm/lm/trie_sort.cc b/kenlm/lm/trie_sort.cc index 2f4a13319..86f284932 100644 --- a/kenlm/lm/trie_sort.cc +++ b/kenlm/lm/trie_sort.cc @@ -146,7 +146,7 @@ template <class Combine> void MergeSortedFiles(const std::string &first_name, co ++first; ++second; } } - for (RecordReader &remains = (first ? second : first); remains; ++remains) { + for (RecordReader &remains = (first ? first : second); remains; ++remains) { WriteOrThrow(out_file.get(), remains.Data(), entry_size); } } |