projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e9663d
)
fixes search in phrase large table.
author
Peng Wu
<alexepico@gmail.com>
Thu, 26 Aug 2010 07:57:27 +0000
(15:57 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Thu, 26 Aug 2010 07:57:27 +0000
(15:57 +0800)
src/storage/phrase_large_table.cpp
patch
|
blob
|
history
diff --git
a/src/storage/phrase_large_table.cpp
b/src/storage/phrase_large_table.cpp
index 38d6d5ee5d66502aedfa393e23693e3f57b31829..d7941cd952fef3ff5386ca64aa25e860588d483c 100644
(file)
--- 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;
}