diff options
author | Peng Wu <alexepico@gmail.com> | 2010-08-26 15:57:27 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2010-08-26 15:57:27 +0800 |
commit | 9d4bd61a4431a69964e6173cbca11e4a2849cc50 (patch) | |
tree | ac02606f554e761993fd12a3b1042efc3a2bb1f5 /src | |
parent | 2e9663da330866e655ba414bed0dfcd0de486864 (diff) | |
download | libpinyin-9d4bd61a4431a69964e6173cbca11e4a2849cc50.tar.gz libpinyin-9d4bd61a4431a69964e6173cbca11e4a2849cc50.tar.xz libpinyin-9d4bd61a4431a69964e6173cbca11e4a2849cc50.zip |
fixes search in phrase large table.
Diffstat (limited to 'src')
-rw-r--r-- | src/storage/phrase_large_table.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage/phrase_large_table.cpp b/src/storage/phrase_large_table.cpp index 38d6d5e..d7941cd 100644 --- a/src/storage/phrase_large_table.cpp +++ b/src/storage/phrase_large_table.cpp @@ -169,6 +169,8 @@ int PhraseArrayIndexLevel<phrase_length>::search(/* in */ utf16_t phrase[], /* o if ( range.first == range.second ) return SEARCH_NONE; + assert(range.second - range.first == 1); + token = range.first->m_token; return SEARCH_OK; } |