Kouhei Sutou
null+****@clear*****
Wed Aug 1 11:01:01 JST 2018
Kouhei Sutou 2018-08-01 11:01:01 +0900 (Wed, 01 Aug 2018) New Revision: cad737642a1432fd8e9af5ca7b31c2394b474860 https://github.com/groonga/groonga/commit/cad737642a1432fd8e9af5ca7b31c2394b474860 Message: Compare "> 0" explicitly Modified files: lib/expr.c Modified: lib/expr.c (+3 -2) =================================================================== --- lib/expr.c 2018-07-31 13:06:18 +0900 (cd1abfd04) +++ lib/expr.c 2018-08-01 11:01:01 +0900 (187dd3cf9) @@ -1,6 +1,7 @@ /* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2010-2018 Brazil + Copyright(C) 2018 Kouhei Sutou <kou �� clear-code.com> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public @@ -4043,7 +4044,7 @@ grn_table_select_index_match(grn_ctx *ctx, } else { optarg.match_info.min = GRN_ID_NIL; } - if (sid) { + if (sid > 0) { int weight_index = sid - 1; int current_vector_size; current_vector_size = GRN_BULK_VSIZE(&wv)/sizeof(int32_t); @@ -4064,7 +4065,7 @@ grn_table_select_index_match(grn_ctx *ctx, optarg.scorer_args_expr_offset = GRN_UINT32_VALUE_AT(&(si->scorer_args_expr_offsets), j); if (j < n_indexes - 1) { - if (sid && + if (sid > 0 && ip[0] == ip[1] && !optarg.scorer && !GRN_PTR_VALUE_AT(&(si->scorers), j + 1)) { -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180801/0c197e64/attachment-0001.htm