[Groonga-commit] groonga/groonga [master] Reduce scope

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Feb 18 23:56:17 JST 2013


Kouhei Sutou	2013-02-18 23:56:17 +0900 (Mon, 18 Feb 2013)

  New Revision: caf3dbd878dcb13e05093b238742d666dee57ff5
  https://github.com/groonga/groonga/commit/caf3dbd878dcb13e05093b238742d666dee57ff5

  Log:
    Reduce scope

  Modified files:
    lib/geo.c

  Modified: lib/geo.c (+1 -1)
===================================================================
--- lib/geo.c    2013-02-18 23:55:34 +0900 (e313a23)
+++ lib/geo.c    2013-02-18 23:56:17 +0900 (aba276b)
@@ -613,7 +613,6 @@ grn_geo_table_sort_by_distance(grn_ctx *ctx,
   if ((entries = GRN_MALLOC(sizeof(geo_entry) * (e + 1)))) {
     int n, diff_bit;
     double d_far;
-    grn_id *v;
     geo_entry *ep;
     grn_bool need_non_indexed_entries;
     grn_hash *indexed_entries = NULL;
@@ -635,6 +634,7 @@ grn_geo_table_sort_by_distance(grn_ctx *ctx,
     for (ep = entries + offset;
          n_entries < limit && ep < entries + n;
          n_entries++, ep++) {
+      grn_id *v;
       if (!grn_array_add(ctx, (grn_array *)result, (void **)&v)) {
         if (indexed_entries) {
           grn_hash_close(ctx, indexed_entries);
-------------- next part --------------
HTML����������������������������...
Download 



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