Kouhei Sutou
null+****@clear*****
Wed Aug 1 11:34:56 JST 2018
Kouhei Sutou 2018-08-01 11:34:56 +0900 (Wed, 01 Aug 2018) New Revision: f1001496e7d081dbbe5fc6a5a22729c48417959f https://github.com/groonga/groonga/commit/f1001496e7d081dbbe5fc6a5a22729c48417959f Message: Compare with "> 0" explicitly Modified files: lib/ii.c Modified: lib/ii.c (+2 -1) =================================================================== --- lib/ii.c 2018-08-01 11:33:20 +0900 (d9229ced7) +++ lib/ii.c 2018-08-01 11:34:56 +0900 (539203882) @@ -1,6 +1,7 @@ /* -*- c-basic-offset: 2 -*- */ /* Copyright(C) 2009-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 @@ -7883,7 +7884,7 @@ grn_ii_similar_search(grn_ctx *ctx, grn_ii *ii, rep = 0; if (optarg->func) { wvm = grn_wv_dynamic; - } else if (optarg->vector_size) { + } else if (optarg->vector_size > 0) { wvm = optarg->weight_vector ? grn_wv_static : grn_wv_constant; } for (j = 1; j <= limit; j++) { -------------- next part -------------- HTML����������������������������... URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180801/7994e97d/attachment.htm