From dfe121f57c1834a622f8ea2dedafc47c47edec8f Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 7 Dec 2011 17:07:08 +0800 Subject: fixes test chewing table --- tests/storage/test_chewing_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/storage') diff --git a/tests/storage/test_chewing_table.cpp b/tests/storage/test_chewing_table.cpp index d79a446..d988222 100644 --- 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) { -- cgit