polish code
authorPeng Wu <alexepico@gmail.com>
Wed, 29 Aug 2012 05:42:08 +0000 (13:42 +0800)
committerPeng Wu <alexepico@gmail.com>
Wed, 29 Aug 2012 05:42:08 +0000 (13:42 +0800)
src/storage/chewing_large_table.cpp

index 921883b..0f3bd9c 100644 (file)
@@ -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));           \