susumu.yata
null+****@clear*****
Wed Nov 6 13:42:17 JST 2013
susumu.yata 2013-11-06 13:42:17 +0900 (Wed, 06 Nov 2013) New Revision: 0d5550d88e9777b8d813688ed59ec4246aae10c5 https://github.com/groonga/groonga/commit/0d5550d88e9777b8d813688ed59ec4246aae10c5 Message: Change the type of num_scan_hits from signed to unsigned. To avoid VC++ warning C4018. Modified files: lib/dat.cpp Modified: lib/dat.cpp (+2 -2) =================================================================== --- lib/dat.cpp 2013-11-06 13:17:09 +0900 (30c65ab) +++ lib/dat.cpp 2013-11-06 13:42:17 +0900 (6e6c7e1) @@ -688,7 +688,7 @@ grn_dat_scan(grn_ctx *ctx, grn_dat *dat, const char *str, return 0; } - int num_scan_hits = 0; + unsigned int num_scan_hits = 0; try { if (dat->normalizer) { int flags = GRN_STRING_WITH_CHECKS; @@ -775,7 +775,7 @@ grn_dat_scan(grn_ctx *ctx, grn_dat *dat, const char *str, "grn::dat::lcp_search failed"); return -1; } - return num_scan_hits; + return static_cast<int>(num_scan_hits); } grn_id -------------- next part -------------- HTML����������������������������... Download