[Groonga-commit] groonga/groonga at 735ae69 [master] Suppress a warning

アーカイブの一覧に戻る

Kouhei Sutou null+****@clear*****
Wed Apr 25 11:50:01 JST 2018


Kouhei Sutou	2018-04-25 11:50:01 +0900 (Wed, 25 Apr 2018)

  New Revision: 735ae699cd440725d54db977a65b35f7dbd33174
  https://github.com/groonga/groonga/commit/735ae699cd440725d54db977a65b35f7dbd33174

  Message:
    Suppress a warning

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+2 -2)
===================================================================
--- lib/expr.c    2018-04-25 11:43:40 +0900 (59d8cefb1)
+++ lib/expr.c    2018-04-25 11:50:01 +0900 (f7ab03969)
@@ -5144,10 +5144,10 @@ grn_scan_info_build_full(grn_ctx *ctx, grn_obj *expr, int *n,
   if (stat || m != o + 1) { return NULL; }
   if (!(sis = GRN_MALLOCN(scan_info *, m + m + o + n_nots))) { return NULL; }
 
-  next_code_op = -1;
+  next_code_op = (grn_operator)-1;
   for (i = 0, stat = SCAN_START, c = e->codes, ce = &e->codes[e->codes_curr]; c < ce; c++) {
     grn_operator code_op;
-    if (next_code_op == -1) {
+    if (next_code_op == (grn_operator)-1) {
       code_op = c->op;
     } else {
       code_op = next_code_op;
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20180425/6e75833c/attachment.htm 



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