[groonga-dev,00123] Re: typo?

Back to archive index

morit****@razil***** morit****@razil*****
2009年 7月 13日 (月) 09:43:42 JST


森です。

typoです!!ご指摘ありがとうございます。

>>> Kouhei Sutou さんは書きました:
> 須藤です。
> 
> ここのコードがどういう意味かはわかっていないのですが、コード
> を見る限り、なんかtypoっぽい気がします。(GRN_SEL_EXACTは0な
> のであってもなくても関係ない。)
> 
> diff --git a/lib/db.c b/lib/db.c
> index 85cb675..c0458af 100644
> --- a/lib/db.c
> +++ b/lib/db.c
> @@ -6372,7 +6372,7 @@ get_phrase(grn_ctx *ctx, efs_info *q, grn_obj *column, int mode, int option)
>    grn_expr_append_const(ctx, q->e, column);
>    grn_expr_append_op(ctx, q->e, GRN_OP_OBJ_GET_VALUE, 2);
>    grn_expr_append_const(ctx, q->e, &q->buf);
> -  if (mode == GRN_OP_MATCH || GRN_SEL_EXACT) {
> +  if (mode == GRN_OP_MATCH || mode == GRN_SEL_EXACT) {
>      grn_expr_append_op(ctx, q->e, mode, 2);
>    } else {
>      grn_expr_append_const_int(ctx, q->e, option);
> @@ -6451,7 +6451,7 @@ get_word(grn_ctx *ctx, efs_info *q, grn_obj *column, int mode, int option)
>    grn_expr_append_op(ctx, q->e, GRN_OP_OBJ_GET_VALUE, 2);
>    grn_expr_append_const(ctx, q->e, &q->buf);
>    grn_expr_append_const_str(ctx, q->e, start, end - start);
> -  if (mode == GRN_OP_MATCH || GRN_SEL_EXACT) {
> +  if (mode == GRN_OP_MATCH || mode == GRN_SEL_EXACT) {
>      grn_expr_append_op(ctx, q->e, mode, 2);
>    } else {
>      grn_expr_append_const_int(ctx, q->e, option);
> 
> -- 
> 須藤 功平 <kou****@clear*****>
> 株式会社クリアコード (http://www.clear-code.com/)
> 
> _______________________________________________
> groonga-dev mailing list
> groon****@lists*****
> http://lists.sourceforge.jp/mailman/listinfo/groonga-dev
> 
--
morita




groonga-dev メーリングリストの案内
Back to archive index