Skip to content

Commit

Permalink
Fix Infinite Loop in Syllabifier with enable_correction
Browse files Browse the repository at this point in the history
Regression from 071afb3.
  • Loading branch information
graphemecluster committed Nov 14, 2023
1 parent 02627c0 commit b30fa28
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rime/algo/syllabifier.cc
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ int Syllabifier::BuildSyllableGraph(const string& input,
SpellingType edge_type = kInvalidSpelling;
for (auto k = j->second.begin(); k != j->second.end();) {
if (k->second.is_correction) {
++k;
continue; // Don't care correction edges
}
if (k->second.type > min_edge_type) {
Expand Down

0 comments on commit b30fa28

Please sign in to comment.