summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/storage/chewing_large_table.cpp2
1 files changed, 1 insertions, 1 deletions
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<len> * phrase = g_array_index \
- (m_chewing_array_indexes, ChewingArrayIndexLevel<len> *, i); \
+ (m_chewing_array_indexes, ChewingArrayIndexLevel<len> *, len); \
if (NULL == phrase) { \
new_chunk->set_content \
(index, &offset, sizeof(table_offset_t)); \