summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-09-22 16:18:37 +0800
committerPeng Wu <alexepico@gmail.com>2013-09-22 16:18:37 +0800
commitadec9ca2ded978110be21597bf0f84ca726177d3 (patch)
tree2c9e5041bb8a05d34ac015df0ab324d5351cb0e2
parenta1ed16081569a46afce162fc3cfb2510bd6763b5 (diff)
downloadlibzhuyin-adec9ca2ded978110be21597bf0f84ca726177d3.tar.gz
libzhuyin-adec9ca2ded978110be21597bf0f84ca726177d3.tar.xz
libzhuyin-adec9ca2ded978110be21597bf0f84ca726177d3.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 728b66e..337adb3 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: \