Skip to content

Commit f6c947d

Browse files
authored
Merge pull request #453 from r-barnes/patch-4
Remove unused variable from trie_sort.cc
2 parents e504a4d + cc44e90 commit f6c947d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lm/trie_sort.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ void SortedFiles::ConvertToSorted(util::FilePiece &f, const SortedVocabulary &vo
264264
std::deque<FILE*> files, contexts;
265265
Closer files_closer(files), contexts_closer(contexts);
266266

267-
for (std::size_t batch = 0, done = 0; done < count; ++batch) {
267+
for (std::size_t done = 0; done < count; ) {
268268
uint8_t *out = begin;
269269
uint8_t *out_end = out + std::min(count - done, batch_size) * entry_size;
270270
if (order == counts.size()) {

0 commit comments

Comments
 (0)