Kouhei Sutou
null+****@clear*****
Fri Nov 13 11:04:58 JST 2015
Kouhei Sutou 2015-11-13 11:04:58 +0900 (Fri, 13 Nov 2015) New Revision: a02f825d17110d060ebe62ae9c310b915f83dfba https://github.com/groonga/groonga/commit/a02f825d17110d060ebe62ae9c310b915f83dfba Message: Simplify Modified files: lib/ii.c Modified: lib/ii.c (+3 -2) =================================================================== --- lib/ii.c 2015-11-12 23:53:02 +0900 (46973cb) +++ lib/ii.c 2015-11-13 11:04:58 +0900 (a9ed6e2) @@ -19,7 +19,6 @@ #include <fcntl.h> #include <string.h> #include <sys/stat.h> -#include <math.h> #ifdef WIN32 # include <io.h> @@ -6726,7 +6725,9 @@ grn_ii_estimate_size_for_query(grn_ctx *ctx, grn_ii *ii, if (i == 0) { estimated_size = term_estimated_size; } else { - estimated_size = fmin(estimated_size, term_estimated_size); + if (term_estimated_size < estimated_size) { + estimated_size = term_estimated_size; + } } } -------------- next part -------------- HTML����������������������������... ダウンロード