summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-07-20 13:24:08 +0800
committerPeng Wu <alexepico@gmail.com>2015-07-20 13:24:08 +0800
commit53adb3f3140790ec323381f39eea6ce79b5711c3 (patch)
tree7517d3dae4e4f1acb4a1ac6c8f4f7d65e9776e6c /src/storage/phrase_index.cpp
parent3120d04f1aba5c745a9c7da5f8f40cf7851e9037 (diff)
parent99aefab704c29e814e3fce38c1ed5fe3a749b31c (diff)
downloadlibpinyin-53adb3f3140790ec323381f39eea6ce79b5711c3.tar.gz
libpinyin-53adb3f3140790ec323381f39eea6ce79b5711c3.tar.xz
libpinyin-53adb3f3140790ec323381f39eea6ce79b5711c3.zip
Merge branch 'obache-neatsrc'
Diffstat (limited to 'src/storage/phrase_index.cpp')
-rw-r--r--src/storage/phrase_index.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/phrase_index.cpp b/src/storage/phrase_index.cpp
index ede3cac..3f13042 100644
--- a/src/storage/phrase_index.cpp
+++ b/src/storage/phrase_index.cpp
@@ -624,7 +624,7 @@ int SubPhraseIndex::get_range(/* out */ PhraseIndexRange & range){
/* remove trailing zeros. */
const table_offset_t * poffset = NULL;
for (poffset = end; poffset > begin + 1; --poffset) {
- if (NULL != *(poffset - 1))
+ if (0 != *(poffset - 1))
break;
}