From e632731d60f614f70a8c63ec2b5ccd4b8dcb1a3b Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 5 Jul 2016 17:41:22 +0800 Subject: fixes typos --- src/pinyin.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/pinyin.cpp b/src/pinyin.cpp index ee117db..d967384 100644 --- a/src/pinyin.cpp +++ b/src/pinyin.cpp @@ -2315,7 +2315,7 @@ static size_t _compute_zero_start(PhoneticKeyMatrix & matrix, size_t offset) { ChewingKey key; ChewingKeyRest key_rest; const ChewingKey zero_key; - size_t index = offset - 1; + ssize_t index = offset - 1; for (; index > 0; --index) { const size_t size = matrix.get_column_size(index); @@ -2638,9 +2638,6 @@ bool pinyin_get_double_pinyin_auxiliary_text(pinyin_instance_t * instance, gchar * yunmu = key.get_yunmu_string(); const size_t len = cursor - begin; switch(len) { - case 0: - middle = g_strconcat("|", shengmu, yunmu, NULL); - break; case 1: middle = g_strconcat(shengmu, "|", yunmu, NULL); break; -- cgit