diff options
| author | Peng Wu <alexepico@gmail.com> | 2025-03-14 11:35:38 +0800 |
|---|---|---|
| committer | Peng Wu <alexepico@gmail.com> | 2025-03-14 11:39:33 +0800 |
| commit | b9bb33de5ed89b304015377f99d0827ea5929532 (patch) | |
| tree | 3bd59663c95b223b992276d85696491ccf7fdf40 /src/pinyin.cpp | |
| parent | 1b36fdb595f8a33a597d0b1538f54b47080d4d46 (diff) | |
| download | libpinyin-b9bb33de5ed89b304015377f99d0827ea5929532.tar.gz libpinyin-b9bb33de5ed89b304015377f99d0827ea5929532.tar.xz libpinyin-b9bb33de5ed89b304015377f99d0827ea5929532.zip | |
Fix some typo in the code
Diffstat (limited to 'src/pinyin.cpp')
| -rw-r--r-- | src/pinyin.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pinyin.cpp b/src/pinyin.cpp index fb06be5..dbfff64 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -1827,7 +1827,7 @@ static void _compute_frequency_of_items(pinyin_context_t * context, /* handle addon candidates. */ if (ADDON_CANDIDATE == item->m_candidate_type) { - total_freq = context->m_phrase_index-> + total_freq = context->m_addon_phrase_index-> get_phrase_index_total_freq(); /* assume the unigram of every addon phrases is 1. */ @@ -3502,7 +3502,7 @@ bool pinyin_get_double_pinyin_auxiliary_text(pinyin_instance_t * instance, g_free(middle); middle = newmiddle; - offset = key_rest.m_raw_end; + break; } gchar * auxtext = g_strconcat(prefix, middle, postfix, NULL); @@ -3562,7 +3562,7 @@ bool pinyin_get_chewing_auxiliary_text(pinyin_instance_t * instance, g_free(right); g_free(zhuyin); - offset = key_rest.m_raw_end; + break; } gchar * auxtext = g_strconcat(prefix, middle, postfix, NULL); |
