diff --git a/lm/trie_sort.cc b/lm/trie_sort.cc index 8972bda5..6ddf9b7e 100644 --- a/lm/trie_sort.cc +++ b/lm/trie_sort.cc @@ -264,7 +264,7 @@ void SortedFiles::ConvertToSorted(util::FilePiece &f, const SortedVocabulary &vo std::deque files, contexts; Closer files_closer(files), contexts_closer(contexts); - for (std::size_t batch = 0, done = 0; done < count; ++batch) { + for (std::size_t done = 0; done < count; ) { uint8_t *out = begin; uint8_t *out_end = out + std::min(count - done, batch_size) * entry_size; if (order == counts.size()) {