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:
a9f3ef4
)
fixes test chewing table
author
Peng Wu
<alexepico@gmail.com>
Wed, 7 Dec 2011 09:07:08 +0000
(17:07 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Wed, 7 Dec 2011 09:07:08 +0000
(17:07 +0800)
tests/storage/test_chewing_table.cpp
patch
|
blob
|
history
diff --git
a/tests/storage/test_chewing_table.cpp
b/tests/storage/test_chewing_table.cpp
index
d79a446
..
d988222
100644
(file)
--- a/
tests/storage/test_chewing_table.cpp
+++ b/
tests/storage/test_chewing_table.cpp
@@
-96,7
+96,7
@@
int main(int argc, char * argv[]) {
largetable.search(keys->len, (ChewingKey *)keys->data, ranges);
- for (size_t i =
0; i < PHRASE_INDEX_LIBRARY_COUNT
; ++i) {
+ for (size_t i =
min_index; i < max_index
; ++i) {
GArray * & range = ranges[i];
if (range) {
for (size_t k = 0; k < range->len; ++k) {