From b9bb33de5ed89b304015377f99d0827ea5929532 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Fri, 14 Mar 2025 11:35:38 +0800 Subject: Fix some typo in the code --- src/pinyin.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/pinyin.cpp') 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); -- cgit