From adec9ca2ded978110be21597bf0f84ca726177d3 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Sun, 22 Sep 2013 16:18:37 +0800 Subject: fixes warnings --- src/storage/chewing_large_table.cpp | 8 ++++---- 1 file 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: \ -- cgit