summaryrefslogtreecommitdiffstats
path: root/src/storage/phrase_index.cpp
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2010-09-14 11:05:19 +0800
committerPeng Wu <alexepico@gmail.com>2010-09-14 11:05:19 +0800
commitea1c658ff751273429667537d70a4473eb884886 (patch)
tree7cc3a03d894c236d2dd82182a754fe227a1e0858 /src/storage/phrase_index.cpp
parenta2a162ce1e4f4c09b2d4ec38920c47e1d2e1ae69 (diff)
downloadlibpinyin-ea1c658ff751273429667537d70a4473eb884886.tar.gz
libpinyin-ea1c658ff751273429667537d70a4473eb884886.tar.xz
libpinyin-ea1c658ff751273429667537d70a4473eb884886.zip
re-factor gen_unigram
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 d7fb4fd..ce23180 100644
--- a/src/storage/phrase_index.cpp
+++ b/src/storage/phrase_index.cpp
@@ -346,7 +346,7 @@ int SubPhraseIndex::get_range(/* out */ PhraseIndexRange & range){
const table_offset_t * begin = (const table_offset_t *)m_phrase_index.begin();
const table_offset_t * end = (const table_offset_t *)m_phrase_index.end();
- range.m_range_begin = 0;
+ range.m_range_begin = 1; /* token starts with 1 in gen_pinyin_table. */
range.m_range_end = end - begin;
return ERROR_OK;