summaryrefslogtreecommitdiffstats
path: root/src/pinyin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/pinyin.cpp')
-rw-r--r--src/pinyin.cpp5
1 files changed, 1 insertions, 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;