null+****@clear*****
null+****@clear*****
2010年 11月 16日 (火) 20:41:28 JST
Daijiro MORI 2010-11-16 11:41:28 +0000 (Tue, 16 Nov 2010) New Revision: 157badc1f53cf89aadcc8e2a49bbf799a7a17df5 Log: Fixed a bug in set_cursor_common_prefix() returns wrong result. Modified files: lib/pat.c Modified: lib/pat.c (+1 -1) =================================================================== --- lib/pat.c 2010-11-16 06:14:21 +0000 (0fd8910) +++ lib/pat.c 2010-11-16 11:41:28 +0000 (6a8c611) @@ -1794,7 +1794,7 @@ set_cursor_common_prefix(grn_ctx *ctx, grn_pat *pat, grn_pat_cursor *c, if (!node0) { return GRN_FILE_CORRUPT; } if (!(k = pat_node_get_key(ctx, pat, node0))) { return GRN_FILE_CORRUPT; } { - uint32_t l = PAT_LEN(node); + uint32_t l = PAT_LEN(node0); if (memcmp(key, k, l)) { break; } if (min_size <= l) { push(c, id0, check);