[Groonga-commit] groonga/groonga at 05f736d [master] Simplify

Zurück zum Archiv-Index
Kouhei Sutou null+****@clear*****
Tue Nov 27 13:20:58 JST 2018


Kouhei Sutou	2018-11-27 13:20:58 +0900 (Tue, 27 Nov 2018)

  Revision: 05f736d704f11f6c13f01bb17669415ccdd55b19
  https://github.com/groonga/groonga/commit/05f736d704f11f6c13f01bb17669415ccdd55b19

  Message:
    Simplify

  Modified files:
    lib/ts/ts_expr_node.c

  Modified: lib/ts/ts_expr_node.c (+1 -2)
===================================================================
--- lib/ts/ts_expr_node.c    2018-11-27 13:15:46 +0900 (f4d002dd8)
+++ lib/ts/ts_expr_node.c    2018-11-27 13:20:58 +0900 (8688cdec0)
@@ -561,8 +561,7 @@ grn_ts_op_not_equal_int(grn_ts_int lhs, grn_ts_int rhs)
 grn_inline static grn_ts_bool
 grn_ts_op_not_equal_float(grn_ts_float lhs, grn_ts_float rhs)
 {
-  /* To suppress warnings, "lhs != rhs" is not used. */
-  return (lhs < rhs) || (lhs > rhs);
+  return !grn_ts_op_equal_float(lhs, rhs);
 }
 
 /* grn_ts_op_not_equal_time() returns lhs != rhs. */
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181127/85fa2238/attachment.html>


More information about the Groonga-commit mailing list
Zurück zum Archiv-Index