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

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Feb 3 20:48:34 JST 2015


Kouhei Sutou	2015-02-03 20:48:34 +0900 (Tue, 03 Feb 2015)

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

  Message:
    Suppress a warning

  Modified files:
    lib/db.c

  Modified: lib/db.c (+2 -2)
===================================================================
--- lib/db.c    2015-02-03 16:45:25 +0900 (550c8f7)
+++ lib/db.c    2015-02-03 20:48:34 +0900 (e9747f8)
@@ -10674,7 +10674,7 @@ grn_column_index_accessor(grn_ctx *ctx, grn_obj *obj, grn_operator op,
   while (a) {
     grn_hook *hooks;
     grn_bool found = GRN_FALSE;
-    grn_hook_entry entry = -1;
+    grn_hook_entry entry = (grn_hook_entry)-1;
 
     if (a->action == GRN_ACCESSOR_GET_COLUMN_VALUE &&
         GRN_OBJ_INDEX_COLUMNP(a->obj)) {
@@ -10693,7 +10693,7 @@ grn_column_index_accessor(grn_ctx *ctx, grn_obj *obj, grn_operator op,
       break;
     }
 
-    if (entry == -1) {
+    if (entry == (grn_hook_entry)-1) {
       break;
     }
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index