Navigation Menu

Skip to content

Commit

Permalink
grn_ts: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Oct 6, 2015
1 parent 21463ac commit c15a9dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/ts.c
Expand Up @@ -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. */
Expand Down

0 comments on commit c15a9dc

Please sign in to comment.