[Groonga-commit] groonga/groonga at 50c9dc0 [master] Use macro for the propose

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 24 11:08:49 JST 2014


Kouhei Sutou	2014-02-24 11:08:49 +0900 (Mon, 24 Feb 2014)

  New Revision: 50c9dc0b85d79f0c563d78f8d303a0a6898be06e
  https://github.com/groonga/groonga/commit/50c9dc0b85d79f0c563d78f8d303a0a6898be06e

  Message:
    Use macro for the propose

  Modified files:
    lib/db.c

  Modified: lib/db.c (+1 -1)
===================================================================
--- lib/db.c    2014-02-24 11:08:04 +0900 (8b38317)
+++ lib/db.c    2014-02-24 11:08:49 +0900 (3320eab)
@@ -2898,7 +2898,7 @@ grn_obj_search_column_index(grn_ctx *ctx, grn_obj *obj, grn_obj *query,
     case GRN_BULK :
       if (query->header.domain == obj->header.domain &&
           GRN_BULK_VSIZE(query) == sizeof(grn_id)) {
-        grn_id tid = *((grn_id *)GRN_BULK_HEAD(query));
+        grn_id tid = GRN_RECORD_VALUE(query);
         rc = grn_obj_search_column_index_by_id(ctx, obj, tid, res, op, optarg);
       } else {
         rc = grn_obj_search_column_index_by_key(ctx, obj, query,
-------------- next part --------------
HTML����������������������������...
Download 



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