diff options
author | Peng Wu <alexepico@gmail.com> | 2016-03-16 11:19:33 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2016-03-16 11:19:33 +0800 |
commit | e0808dcd36761dfca7f363cf139f073d1d94db6a (patch) | |
tree | ed9b99db63bfa26caa9e122d8ac40f0760d352b0 /src/storage/phrase_large_table3_kyotodb.cpp | |
parent | 5488e7375d6c9bb55eb69e32246192f01bde3e61 (diff) | |
download | libpinyin-e0808dcd36761dfca7f363cf139f073d1d94db6a.tar.gz libpinyin-e0808dcd36761dfca7f363cf139f073d1d94db6a.tar.xz libpinyin-e0808dcd36761dfca7f363cf139f073d1d94db6a.zip |
write remove_index method
Diffstat (limited to 'src/storage/phrase_large_table3_kyotodb.cpp')
-rw-r--r-- | src/storage/phrase_large_table3_kyotodb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/phrase_large_table3_kyotodb.cpp b/src/storage/phrase_large_table3_kyotodb.cpp index e0f8c55..bd02bf0 100644 --- a/src/storage/phrase_large_table3_kyotodb.cpp +++ b/src/storage/phrase_large_table3_kyotodb.cpp @@ -215,7 +215,7 @@ int PhraseLargeTable3::remove_index(int phrase_length, const size_t ksiz = phrase_length * sizeof(ucs4_t); char * vbuf = NULL; int32_t vsiz = m_db->check(kbuf, ksiz); - if (vsiz < (signed) sizeof(ucs4_t)) + if (vsiz < (signed) sizeof(phrase_token_t)) return ERROR_REMOVE_ITEM_DONOT_EXISTS; /* contains at least one token. */ |