diff options
author | Peng Wu <alexepico@gmail.com> | 2015-07-20 13:24:08 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-07-20 13:24:08 +0800 |
commit | 53adb3f3140790ec323381f39eea6ce79b5711c3 (patch) | |
tree | 7517d3dae4e4f1acb4a1ac6c8f4f7d65e9776e6c /src/storage/phrase_index.cpp | |
parent | 3120d04f1aba5c745a9c7da5f8f40cf7851e9037 (diff) | |
parent | 99aefab704c29e814e3fce38c1ed5fe3a749b31c (diff) | |
download | libpinyin-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.cpp | 2 |
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; } |