summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2016-03-15 13:26:06 +0800
committerPeng Wu <alexepico@gmail.com>2016-03-15 13:26:06 +0800
commit63ad8a96490927f6261089e7c59d23d00cb2f069 (patch)
treed877508d4c35b5555ea903c6d91ebbb0b0e0af04
parent8f3603807183cbe4c05f5f3d926c809698aacb9d (diff)
downloadlibpinyin-63ad8a96490927f6261089e7c59d23d00cb2f069.tar.gz
libpinyin-63ad8a96490927f6261089e7c59d23d00cb2f069.tar.xz
libpinyin-63ad8a96490927f6261089e7c59d23d00cb2f069.zip
fixes warnings
-rw-r--r--src/storage/phrase_large_table2.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/storage/phrase_large_table2.cpp b/src/storage/phrase_large_table2.cpp
index c7df3ae..8a55d66 100644
--- a/src/storage/phrase_large_table2.cpp
+++ b/src/storage/phrase_large_table2.cpp
@@ -196,9 +196,9 @@ int PhraseLengthIndexLevel2::search(int phrase_length,
/* in */ const ucs4_t phrase[],
/* out */ PhraseTokens tokens) const {
int result = SEARCH_NONE;
- if(m_phrase_array_indexes->len < phrase_length)
+ if ((int) m_phrase_array_indexes->len < phrase_length)
return result;
- if (m_phrase_array_indexes->len > phrase_length)
+ if ((int) m_phrase_array_indexes->len > phrase_length)
result |= SEARCH_CONTINUED;
#define CASE(len) case len: \
@@ -319,7 +319,7 @@ int PhraseLengthIndexLevel2::add_index(int phrase_length,
if (phrase_length >= MAX_PHRASE_LENGTH)
return ERROR_PHRASE_TOO_LONG;
- if (m_phrase_array_indexes->len < phrase_length)
+ if ((int) m_phrase_array_indexes->len < phrase_length)
g_array_set_size(m_phrase_array_indexes, phrase_length);
#define CASE(len) case len: \
@@ -361,7 +361,7 @@ int PhraseLengthIndexLevel2::remove_index(int phrase_length,
if (phrase_length >= MAX_PHRASE_LENGTH)
return ERROR_PHRASE_TOO_LONG;
- if (m_phrase_array_indexes->len < phrase_length)
+ if ((int) m_phrase_array_indexes->len < phrase_length)
return ERROR_REMOVE_ITEM_DONOT_EXISTS;
#define CASE(len) case len: \