susumu.yata
null+****@clear*****
Tue Oct 6 16:12:40 JST 2015
susumu.yata 2015-10-06 16:12:40 +0900 (Tue, 06 Oct 2015) New Revision: c15a9dc39d65176bd5ad505218a99b69d153a6a3 https://github.com/groonga/groonga/commit/c15a9dc39d65176bd5ad505218a99b69d153a6a3 Message: grn_ts: fix typos Modified files: lib/ts.c Modified: lib/ts.c (+2 -2) =================================================================== --- lib/ts.c 2015-10-06 16:07:35 +0900 (63b5ec3) +++ lib/ts.c 2015-10-06 16:12:40 +0900 (5c39df8) @@ -929,13 +929,13 @@ grn_ts_op_not_equal_time(grn_ts_time lhs, grn_ts_time rhs) { /* grn_ts_op_not_equal_text() returns lhs != rhs. */ inline static grn_ts_bool grn_ts_op_not_equal_text(grn_ts_text lhs, grn_ts_text rhs) { - return (lhs.size != rhs.size) && !memcmp(lhs.ptr, rhs.ptr, lhs.size); + return (lhs.size != rhs.size) || memcmp(lhs.ptr, rhs.ptr, lhs.size); } /* grn_ts_op_not_equal_geo_point() returns lhs != rhs. */ inline static grn_ts_bool grn_ts_op_not_equal_geo_point(grn_ts_geo_point lhs, grn_ts_geo_point rhs) { - return (lhs.latitude != rhs.latitude) && (lhs.longitude != rhs.longitude); + return (lhs.latitude != rhs.latitude) || (lhs.longitude != rhs.longitude); } /* grn_ts_op_not_equal_ref() returns lhs != rhs. */ -------------- next part -------------- HTML����������������������������...Download