summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2015-06-02 16:19:26 +0800
committerPeng Wu <alexepico@gmail.com>2015-06-02 16:19:26 +0800
commit1b21bea5dd6acd635af7d981b2b8a8763e070fdd (patch)
tree31e2b7de55830ac11a51e1815802c823f021f466
parent5cdd5675d09a10a515d8cfc5cf39ab825751339e (diff)
downloadlibpinyin-1b21bea5dd6acd635af7d981b2b8a8763e070fdd.tar.gz
libpinyin-1b21bea5dd6acd635af7d981b2b8a8763e070fdd.tar.xz
libpinyin-1b21bea5dd6acd635af7d981b2b8a8763e070fdd.zip
fixes a bug
-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 57146cd..b851a72 100644
--- a/src/storage/phrase_index.cpp
+++ b/src/storage/phrase_index.cpp
@@ -629,7 +629,7 @@ int SubPhraseIndex::get_range(/* out */ PhraseIndexRange & range){
}
range.m_range_begin = 1; /* token starts with 1 in gen_pinyin_table. */
- range.m_range_end = poffset - begin + 1; /* removed zeros. */
+ range.m_range_end = poffset - begin; /* removed zeros. */
return ERROR_OK;
}