projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c2f853e
)
polish code
author
Peng Wu
<alexepico@gmail.com>
Wed, 29 Aug 2012 05:42:08 +0000
(13:42 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Wed, 29 Aug 2012 05:42:08 +0000
(13:42 +0800)
src/storage/chewing_large_table.cpp
patch
|
blob
|
history
diff --git
a/src/storage/chewing_large_table.cpp
b/src/storage/chewing_large_table.cpp
index
921883b
..
0f3bd9c
100644
(file)
--- 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)); \