[Groonga-commit] groonga/groonga at 6e6ea28 [master] Add braces for safety

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 17 17:11:08 JST 2016


Kouhei Sutou	2016-05-17 17:11:08 +0900 (Tue, 17 May 2016)

  New Revision: 6e6ea28010dab6fba50405b8b78dd5bef5647339
  https://github.com/groonga/groonga/commit/6e6ea28010dab6fba50405b8b78dd5bef5647339

  Message:
    Add braces for safety

  Modified files:
    include/groonga/hash.h

  Modified: include/groonga/hash.h (+2 -1)
===================================================================
--- include/groonga/hash.h    2016-05-17 17:10:30 +0900 (9e0b5cd)
+++ include/groonga/hash.h    2016-05-17 17:11:08 +0900 (7dc2df4)
@@ -91,9 +91,10 @@ GRN_API grn_rc grn_hash_cursor_delete(grn_ctx *ctx, grn_hash_cursor *c,
                                 0, -1, GRN_CURSOR_BY_ID);\
   if (cursor) {\
     grn_id id;\
-    while ((id = grn_hash_cursor_next((ctx), cursor)) != GRN_ID_NIL)
+    while ((id = grn_hash_cursor_next((ctx), cursor)) != GRN_ID_NIL) {
 
 #define GRN_HASH_EACH_END(ctx, cursor)\
+    }\
     grn_hash_cursor_close((ctx), cursor);\
   }\
 } while(0)
-------------- next part --------------
HTML����������������������������...
Download 



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