diff options
author | Peng Wu <alexepico@gmail.com> | 2015-08-04 11:07:17 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-08-04 11:07:17 +0800 |
commit | 963f73d36934002d5152c6f8e40f0a9d9c1fa80c (patch) | |
tree | c373454025b647ef0e5bdb518ae9d7c89fbd2a34 | |
parent | 92935861e65b51ee9e48889f495bf5e2d031892e (diff) | |
download | libzhuyin-963f73d36934002d5152c6f8e40f0a9d9c1fa80c.tar.gz libzhuyin-963f73d36934002d5152c6f8e40f0a9d9c1fa80c.tar.xz libzhuyin-963f73d36934002d5152c6f8e40f0a9d9c1fa80c.zip |
update parse_one_key method
-rw-r--r-- | src/storage/pinyin_parser2.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage/pinyin_parser2.cpp b/src/storage/pinyin_parser2.cpp index bdbe385..86e25a7 100644 --- a/src/storage/pinyin_parser2.cpp +++ b/src/storage/pinyin_parser2.cpp @@ -1307,6 +1307,8 @@ bool ChewingDirectParser2::parse_one_key(pinyin_option_t options, /* save back tone if available. */ key.m_tone = tone; g_free(chewing); + + assert(tone != CHEWING_ZERO_TONE); return true; } |