diff options
author | Peng Wu <alexepico@gmail.com> | 2015-06-02 16:19:26 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2015-06-02 16:19:26 +0800 |
commit | 1b21bea5dd6acd635af7d981b2b8a8763e070fdd (patch) | |
tree | 31e2b7de55830ac11a51e1815802c823f021f466 | |
parent | 5cdd5675d09a10a515d8cfc5cf39ab825751339e (diff) | |
download | libpinyin-1b21bea5dd6acd635af7d981b2b8a8763e070fdd.tar.gz |
fixes a bug
-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 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; } |