Skip to content

Commit

Permalink
[-] Update map_pattern, as the agendaItem is accessed more than once.
Browse files Browse the repository at this point in the history
  • Loading branch information
chouteau committed Jan 14, 2021
1 parent 0ceaf65 commit b3c9e17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/fuzzy_match.cc
Expand Up @@ -576,8 +576,8 @@ namespace fuzzy
for (const auto i : unigram_list)
{
if (!pa.map_pattern[i]) {
paIt.value().coverage++;
// We do not need to update map_pattern as it will not be read again
nGramMatches.get_psentences()[s_id].map_pattern[i] = true;
nGramMatches.get_psentences()[s_id].coverage++;
}
}
}
Expand Down

0 comments on commit b3c9e17

Please sign in to comment.