diff options
Diffstat (limited to 'src/storage/pinyin_parser2.h')
-rw-r--r-- | src/storage/pinyin_parser2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h index 72635c0..9b9d78e 100644 --- a/src/storage/pinyin_parser2.h +++ b/src/storage/pinyin_parser2.h @@ -388,8 +388,12 @@ inline int pinyin_compare_middle_and_final2(pinyin_option_t options, inline int pinyin_compare_tone2(pinyin_option_t options, ChewingTone lhs, ChewingTone rhs) { +#if 0 if (lhs == rhs) return 0; +#endif + if (options & FORCE_TONE) + return (lhs - rhs); if (lhs == CHEWING_ZERO_TONE) return 0; if (rhs == CHEWING_ZERO_TONE) |