Skip to content

Commit

Permalink
Merge pull request #453 from r-barnes/patch-4
Browse files Browse the repository at this point in the history
Remove unused variable from trie_sort.cc
  • Loading branch information
kpu authored Jul 30, 2024
2 parents e504a4d + cc44e90 commit f6c947d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lm/trie_sort.cc
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ void SortedFiles::ConvertToSorted(util::FilePiece &f, const SortedVocabulary &vo
std::deque<FILE*> 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()) {
Expand Down

0 comments on commit f6c947d

Please sign in to comment.