diff options
author | Peng Wu <alexepico@gmail.com> | 2012-08-27 16:03:57 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-08-27 16:03:57 +0800 |
commit | f92f44995afc6e3ec2c1ea84a5083754e34a0d79 (patch) | |
tree | 6fca03cd6aaf11ac30c16a3d41d4bce501eed2d4 /src/storage/pinyin_phrase2.h | |
parent | bf2b12a7d866efcc45659a65727ac191293dcb48 (diff) | |
download | libpinyin-f92f44995afc6e3ec2c1ea84a5083754e34a0d79.tar.gz libpinyin-f92f44995afc6e3ec2c1ea84a5083754e34a0d79.tar.xz libpinyin-f92f44995afc6e3ec2c1ea84a5083754e34a0d79.zip |
change phrase_length from int to size_t
Diffstat (limited to 'src/storage/pinyin_phrase2.h')
-rw-r--r-- | src/storage/pinyin_phrase2.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/pinyin_phrase2.h b/src/storage/pinyin_phrase2.h index 16a5b68..ba658f0 100644 --- a/src/storage/pinyin_phrase2.h +++ b/src/storage/pinyin_phrase2.h @@ -218,7 +218,7 @@ inline void compute_upper_value2(pinyin_option_t options, } -template<int phrase_length> +template<size_t phrase_length> struct PinyinIndexItem2{ phrase_token_t m_token; ChewingKey m_keys[phrase_length]; @@ -231,7 +231,7 @@ public: /* for find the element in the phrase array */ -template<int phrase_length> +template<size_t phrase_length> inline int phrase_exact_compare2(const PinyinIndexItem2<phrase_length> &lhs, const PinyinIndexItem2<phrase_length> &rhs) { @@ -240,7 +240,7 @@ inline int phrase_exact_compare2(const PinyinIndexItem2<phrase_length> &lhs, return pinyin_exact_compare2(keys_lhs, keys_rhs, phrase_length); } -template<int phrase_length> +template<size_t phrase_length> inline bool phrase_exact_less_than2(const PinyinIndexItem2<phrase_length> &lhs, const PinyinIndexItem2<phrase_length> &rhs) { |