diff options
| author | Peng Wu <alexepico@gmail.com> | 2025-12-30 16:20:49 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2025-12-30 16:20:49 +0800 |
| commit | 219e7ab4e1364cbc9e246eb3122b8fed30ec7bfe (patch) | |
| tree | ff66d2fa17d958fa68390b91167e6aa7db96e728 /src/storage/pinyin_parser2.cpp | |
| parent | 8351ccc1a96f4dd3550b172e1989e3132cbac40c (diff) | |
| download | libpinyin-219e7ab4e1364cbc9e246eb3122b8fed30ec7bfe.tar.gz libpinyin-219e7ab4e1364cbc9e246eb3122b8fed30ec7bfe.tar.xz libpinyin-219e7ab4e1364cbc9e246eb3122b8fed30ec7bfe.zip | |
Update check_pinyin_options and check_chewing_options functions
Diffstat (limited to 'src/storage/pinyin_parser2.cpp')
| -rw-r--r-- | src/storage/pinyin_parser2.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index ce640c3..47c5876 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -46,8 +46,8 @@ static bool check_pinyin_options(pinyin_option_t options, const pinyin_index_ite } /* handle correct pinyin, currently only one flag per item. */ - flags &= PINYIN_CORRECT_ALL; - options &= PINYIN_CORRECT_ALL; + flags &= PINYIN_CORRECT_ALL | PINYIN_AMB_ALL; + options &= PINYIN_CORRECT_ALL | PINYIN_AMB_ALL; if (flags) { if ((flags & options) != flags) |
