[Groonga-commit] groonga/groonga at 4477584 [master] Fix wrong variable name

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 19 18:42:16 JST 2015


Kouhei Sutou	2015-01-19 18:42:16 +0900 (Mon, 19 Jan 2015)

  New Revision: 44775843d6c658499db9b23744c68cb3f26db8dd
  https://github.com/groonga/groonga/commit/44775843d6c658499db9b23744c68cb3f26db8dd

  Message:
    Fix wrong variable name

  Modified files:
    lib/db.c

  Modified: lib/db.c (+3 -3)
===================================================================
--- lib/db.c    2015-01-19 18:41:32 +0900 (c4767f6)
+++ lib/db.c    2015-01-19 18:42:16 +0900 (28575bd)
@@ -5758,9 +5758,9 @@ grn_accessor_get_value(grn_ctx *ctx, grn_accessor *a, grn_id id, grn_obj *value)
     case GRN_ACCESSOR_GET_MAX :
       if (id) {
         grn_rset_recinfo *ri = (grn_rset_recinfo *)grn_obj_get_value_(ctx, a->obj, id, &vs);
-        int64_t sum;
-        sum = grn_rset_recinfo_get_max(ctx, ri, a->obj);
-        GRN_INT64_PUT(ctx, value, sum);
+        int64_t max;
+        max = grn_rset_recinfo_get_max(ctx, ri, a->obj);
+        GRN_INT64_PUT(ctx, value, max);
       } else {
         GRN_INT64_PUT(ctx, value, 0);
       }
-------------- next part --------------
HTML����������������������������...
Download 



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