[Groonga-commit] groonga/groonga at 52565f6 [master] Use bulk reader macro instead of explicit cast

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jan 14 14:06:15 JST 2014


Kouhei Sutou	2014-01-14 14:06:15 +0900 (Tue, 14 Jan 2014)

  New Revision: 52565f6852a9054811db4d6cc100fd3cc534a935
  https://github.com/groonga/groonga/commit/52565f6852a9054811db4d6cc100fd3cc534a935

  Message:
    Use bulk reader macro instead of explicit cast

  Modified files:
    lib/expr.c

  Modified: lib/expr.c (+1 -1)
===================================================================
--- lib/expr.c    2014-01-14 14:04:24 +0900 (947ccd2)
+++ lib/expr.c    2014-01-14 14:06:15 +0900 (7d3c26b)
@@ -4611,7 +4611,7 @@ grn_table_select_index(grn_ctx *ctx, grn_obj *table, scan_info *si,
           case GRN_ACCESSOR_GET_ID :
             GRN_UINT32_INIT(&dest, 0);
             if (!grn_obj_cast(ctx, si->query, &dest, GRN_FALSE)) {
-              posting.rid = *((grn_id *)GRN_BULK_HEAD(&dest));
+              posting.rid = GRN_UINT32_VALUE(&dest);
               if (posting.rid) {
                 if (posting.rid == grn_table_at(ctx, table, posting.rid)) {
                   grn_ii_posting_add(ctx, &posting, (grn_hash *)res,
-------------- next part --------------
HTML����������������������������...
다운로드 



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