[Groonga-commit] groonga/groonga at 167539e [master] Remove needless cast

Back to archive index

Kouhei Sutou null+****@clear*****
Fri May 24 12:08:53 JST 2013


Kouhei Sutou	2013-05-24 12:08:53 +0900 (Fri, 24 May 2013)

  New Revision: 167539ec1ebb07ed3d5fc90cdc8bd083c14dc1ac
  https://github.com/groonga/groonga/commit/167539ec1ebb07ed3d5fc90cdc8bd083c14dc1ac

  Message:
    Remove needless cast
    
    Because it disables wrong type check by compiler.

  Modified files:
    lib/db.c

  Modified: lib/db.c (+2 -2)
===================================================================
--- lib/db.c    2013-05-24 12:08:13 +0900 (b373dd1)
+++ lib/db.c    2013-05-24 12:08:53 +0900 (328cd9b)
@@ -36,9 +36,9 @@
 
 #define GRN_TABLE_GROUPED (0x01<<0)
 #define GRN_TABLE_IS_GROUPED(table)\
-  (((grn_hash *)(table))->obj.header.impl_flags & GRN_TABLE_GROUPED)
+  ((table)->header.impl_flags & GRN_TABLE_GROUPED)
 #define GRN_TABLE_GROUPED_ON(table)\
-  (((grn_hash *)(table))->obj.header.impl_flags |= GRN_TABLE_GROUPED)
+  ((table)->header.impl_flags |= GRN_TABLE_GROUPED)
 
 #define WITH_NORMALIZE(table,key,key_size,block) do {\
   if ((table)->normalizer && key && key_size > 0) {\
-------------- next part --------------
HTML����������������������������...
Download 



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