From 63ad8a96490927f6261089e7c59d23d00cb2f069 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 15 Mar 2016 13:26:06 +0800 Subject: fixes warnings --- src/storage/phrase_large_table2.cpp | 8 ++++---- 1 file 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: \ -- cgit