[Groonga-commit] groonga/groonga at b4e0d87 [master] Use si->flags & SCAN_POP condition for consistency

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Sat Jun 23 22:04:43 JST 2018


Kouhei Sutou	2018-06-23 22:04:43 +0900 (Sat, 23 Jun 2018)

  New Revision: b4e0d879d9d63acc48adb2ee253e078337b93957
  https://github.com/groonga/groonga/commit/b4e0d879d9d63acc48adb2ee253e078337b93957

  Message:
    Use si->flags & SCAN_POP condition for consistency

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -5)
===================================================================
--- lib/expr.c    2018-06-23 22:01:56 +0900 (72a2f0120)
+++ lib/expr.c    2018-06-23 22:04:43 +0900 (cd1abfd04)
@@ -4699,11 +4699,7 @@ grn_table_select_inspect_condition(grn_ctx *ctx,
 
   GRN_TEXT_PUTS(ctx, buffer, ": ");
 
-  if (si->start >= expr->codes_curr) {
-    if (si->op != GRN_OP_NOP) {
-      GRN_TEXT_PUTS(ctx, buffer, grn_operator_to_string(si->op));
-      GRN_TEXT_PUTS(ctx, buffer, ": ");
-    }
+  if (si->flags & SCAN_POP) {
     GRN_TEXT_PUTS(ctx, buffer, grn_operator_to_string(si->logical_op));
     GRN_TEXT_PUTC(ctx, buffer, '\0');
     return GRN_TEXT_VALUE(buffer);
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180623/e8676493/attachment-0001.htm 



More information about the Groonga-commit mailing list
アーカイブの一覧に戻る