summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_large_table.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-08-25 17:53:07 +0800
committerPeng Wu <alexepico@gmail.com>2010-08-25 17:53:07 +0800
commitc7232e9e4545596913892f478405b8e8febc6e4b (patch)
tree20da49323bac546fe082220ae62d155f21f6927b /src/storage/phrase_large_table.cpp
parent5b86b689d2bdf08778888d05faa9babe39d91464 (diff)
downloadlibpinyin-c7232e9e4545596913892f478405b8e8febc6e4b.tar.gz
libpinyin-c7232e9e4545596913892f478405b8e8febc6e4b.tar.xz
libpinyin-c7232e9e4545596913892f478405b8e8febc6e4b.zip
fixes compile errors
Diffstat (limited to 'src/storage/phrase_large_table.cpp')
-rw-r--r--src/storage/phrase_large_table.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/storage/phrase_large_table.cpp b/src/storage/phrase_large_table.cpp
index 6c6dc3c..a033cee 100644
--- a/src/storage/phrase_large_table.cpp
+++ b/src/storage/phrase_large_table.cpp
@@ -28,7 +28,7 @@ PhraseBitmapIndexLevel::PhraseBitmapIndexLevel(){
}
void PhraseBitmapIndexLevel::reset(){
- for ( int i = 0; i < PHRASE_Number_Of_Bitmap_Index; i++){
+ for ( size_t i = 0; i < PHRASE_Number_Of_Bitmap_Index; i++){
PhraseLengthIndexLevel * length_array =
m_phrase_length_indexes[i];
if ( length_array )
@@ -62,7 +62,7 @@ PhraseLengthIndexLevel::~PhraseLengthIndexLevel(){
break; \
}
- for ( int i = 0 ; i < m_phrase_array_indexes->len; ++i){
+ for ( size_t i = 0 ; i < m_phrase_array_indexes->len; ++i){
switch (i){
CASE(0);
CASE(1);
@@ -131,6 +131,6 @@ int PhraseLengthIndexLevel::search(int phrase_length,
}
template<size_t phrase_length>
-int PinyinArrayIndexLevel<phrase_length>::search(/* in */ utf16_t phrase[], /* out */ phrase_token_t & token){
+int PhraseArrayIndexLevel<phrase_length>::search(/* in */ utf16_t phrase[], /* out */ phrase_token_t & token){
}