From 9d4bd61a4431a69964e6173cbca11e4a2849cc50 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Thu, 26 Aug 2010 15:57:27 +0800 Subject: fixes search in phrase large table. --- src/storage/phrase_large_table.cpp | 2 ++ 1 file changed, 2 insertions(+) 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::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; } -- cgit