null+****@clear*****
null+****@clear*****
2010年 7月 23日 (金) 16:38:45 JST
Kouhei Sutou 2010-07-23 07:38:45 +0000 (Fri, 23 Jul 2010)
New Revision: a80c1da2ad2539edc1e671791019ddce6257d9ca
Log:
revert the previous needless commit.
Modified files:
lib/pat.c
Modified: lib/pat.c (+5 -8)
===================================================================
--- lib/pat.c 2010-07-23 07:36:41 +0000 (0efe1fd)
+++ lib/pat.c 2010-07-23 07:38:45 +0000 (30728b3)
@@ -1751,15 +1751,12 @@ set_cursor_near(grn_ctx *ctx, grn_pat *pat, grn_pat_cursor *c,
}
}
check = ch;
- if (check == 0) {
+ if (nth_bit((uint8_t *)key, check, pat->key_size)) {
+ if (check >= min) { push(c, node->lr[0], check); }
+ id = node->lr[1];
} else {
- if (nth_bit((uint8_t *)key, check, pat->key_size)) {
- if (check >= min) { push(c, node->lr[0], check); }
- id = node->lr[1];
- } else {
- if (check >= min) { push(c, node->lr[1], check); }
- id = node->lr[0];
- }
+ if (check >= min) { push(c, node->lr[1], check); }
+ id = node->lr[0];
}
}
return GRN_SUCCESS;