[Groonga-commit] groonga/groonga at fdeefd9 [master] ii: reduce scope

Back to archive index
Kouhei Sutou null+****@clear*****
Fri Feb 15 09:35:23 JST 2019


Kouhei Sutou	2019-02-15 09:35:23 +0900 (Fri, 15 Feb 2019)

  Revision: fdeefd91d8a8d74a55799a453a40309e5784819d
  https://github.com/groonga/groonga/commit/fdeefd91d8a8d74a55799a453a40309e5784819d

  Message:
    ii: reduce scope

  Modified files:
    lib/ii.c

  Modified: lib/ii.c (+1 -2)
===================================================================
--- lib/ii.c    2019-02-14 20:46:04 +0900 (3a08cf1ab)
+++ lib/ii.c    2019-02-15 09:35:23 +0900 (21cf1b460)
@@ -3828,7 +3828,6 @@ buffer_merge(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h,
     uint32_t nvchunks = 0;
     chunk_info *cinfo = NULL;
     grn_id crid = GRN_ID_NIL;
-    uint32_t ndf;
 
     data.ii = ii;
     buffer_data->buffer = sb;
@@ -4040,8 +4039,8 @@ buffer_merge(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h,
       }
       goto exit;
     }
-    ndf = data.dest.record_id_gaps - dv[0].data;
     {
+      uint32_t ndf = data.dest.record_id_gaps - dv[0].data;
       grn_id tid = bt->tid & GRN_ID_MAX;
       uint32_t *a = array_at(ctx, ii, tid);
       if (!a) {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190215/206eaec1/attachment.html>


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