summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-09-22 16:22:22 +0800
committerPeng Wu <alexepico@gmail.com>2013-09-22 16:22:22 +0800
commitc63a61178f3b9ef8728da3070efdc5114313c5b7 (patch)
tree6848b3a534cbfd4abf50b68431343d8c1983b780
parent84514d786097de4c33c71814fa431412ff0ad889 (diff)
downloadlibpinyin-c63a61178f3b9ef8728da3070efdc5114313c5b7.tar.gz
libpinyin-c63a61178f3b9ef8728da3070efdc5114313c5b7.tar.xz
libpinyin-c63a61178f3b9ef8728da3070efdc5114313c5b7.zip
fixes warnings
-rw-r--r--src/storage/chewing_large_table.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp
index 2eb8658..83c3ccf 100644
--- a/src/storage/chewing_large_table.cpp
+++ b/src/storage/chewing_large_table.cpp
@@ -355,9 +355,9 @@ int ChewingLengthIndexLevel::search(pinyin_option_t options, int phrase_length,
/* in */ const ChewingKey keys[],
/* out */ PhraseIndexRanges ranges) const {
int result = SEARCH_NONE;
- if (m_chewing_array_indexes->len < phrase_length + 1)
+ if ((int) m_chewing_array_indexes->len < phrase_length + 1)
return result;
- if (m_chewing_array_indexes->len > phrase_length + 1)
+ if ((int) m_chewing_array_indexes->len > phrase_length + 1)
result |= SEARCH_CONTINUED;
#define CASE(len) case len: \
@@ -513,7 +513,7 @@ int ChewingLengthIndexLevel::add_index(int phrase_length,
if (!(phrase_length + 1 < MAX_PHRASE_LENGTH))
return ERROR_PHRASE_TOO_LONG;
- if (m_chewing_array_indexes->len <= phrase_length)
+ if ((int) m_chewing_array_indexes->len <= phrase_length)
g_array_set_size(m_chewing_array_indexes, phrase_length + 1);
#define CASE(len) case len: \
@@ -556,7 +556,7 @@ int ChewingLengthIndexLevel::remove_index(int phrase_length,
if (!(phrase_length + 1 < MAX_PHRASE_LENGTH))
return ERROR_PHRASE_TOO_LONG;
- if (m_chewing_array_indexes->len <= phrase_length)
+ if ((int) m_chewing_array_indexes->len <= phrase_length)
return ERROR_REMOVE_ITEM_DONOT_EXISTS;
#define CASE(len) case len: \