diff options
author | Peng Wu <alexepico@gmail.com> | 2016-07-05 17:41:22 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-07-05 17:41:22 +0800 |
commit | e632731d60f614f70a8c63ec2b5ccd4b8dcb1a3b (patch) | |
tree | 0210a65233e0d01cca8f14298a5e3745cdb882d5 | |
parent | e3025d3bfbca1f98c7bec84b2fb50235e1e9c4e1 (diff) | |
download | libpinyin-e632731d60f614f70a8c63ec2b5ccd4b8dcb1a3b.tar.gz libpinyin-e632731d60f614f70a8c63ec2b5ccd4b8dcb1a3b.tar.xz libpinyin-e632731d60f614f70a8c63ec2b5ccd4b8dcb1a3b.zip |
fixes typos
-rw-r--r-- | src/pinyin.cpp | 5 |
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; |