From 9563ee6f1077b5f062505d5083263ea49ee9d15f Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Wed, 29 Aug 2012 13:42:08 +0800 Subject: polish code --- src/storage/chewing_large_table.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storage/chewing_large_table.cpp') diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp index 921883b..0f3bd9c 100644 --- a/src/storage/chewing_large_table.cpp +++ b/src/storage/chewing_large_table.cpp @@ -829,7 +829,7 @@ bool ChewingLengthIndexLevel::store(MemoryChunk * new_chunk, #define CASE(len) case len: \ { \ ChewingArrayIndexLevel * phrase = g_array_index \ - (m_chewing_array_indexes, ChewingArrayIndexLevel *, i); \ + (m_chewing_array_indexes, ChewingArrayIndexLevel *, len); \ if (NULL == phrase) { \ new_chunk->set_content \ (index, &offset, sizeof(table_offset_t)); \ -- cgit