Kouhei Sutou
null+****@clear*****
Mon Jan 19 12:59:06 JST 2015
Kouhei Sutou 2015-01-19 12:59:06 +0900 (Mon, 19 Jan 2015) New Revision: 3635a6af1a238777ae85b36056e215c9e80b38e0 https://github.com/groonga/groonga/commit/3635a6af1a238777ae85b36056e215c9e80b38e0 Message: Remove needless condition Modified files: lib/expr.c Modified: lib/expr.c (+2 -4) =================================================================== --- lib/expr.c 2015-01-19 12:45:58 +0900 (cd3e743) +++ lib/expr.c 2015-01-19 12:59:06 +0900 (eada9b7) @@ -4638,7 +4638,7 @@ scan_info_build_find_index_column_index(grn_ctx *ctx, uint32_t offset = 0; grn_obj *index; int sid = 0; - int32_t weight = 0; + int32_t weight; index = ec->value; if (n_rest_codes >= 2 && @@ -4653,9 +4653,7 @@ scan_info_build_find_index_column_index(grn_ctx *ctx, } offset = 2; } - if ((n_rest_codes - offset) >= 1) { - weight = get_weight(ctx, ec + offset); - } + weight = get_weight(ctx, ec + offset); scan_info_put_index(ctx, si, index, sid, weight); return offset; -------------- next part -------------- HTML����������������������������...Download