[Groonga-commit] groonga/groonga at 70911da [master] Add a missing cast

Back to archive index

Kouhei Sutou null+****@clear*****
Mon Jan 19 17:20:15 JST 2015


Kouhei Sutou	2015-01-19 17:20:15 +0900 (Mon, 19 Jan 2015)

  New Revision: 70911da1b7ef0f5373a2b40324bab6182b611e82
  https://github.com/groonga/groonga/commit/70911da1b7ef0f5373a2b40324bab6182b611e82

  Message:
    Add a missing cast

  Modified files:
    lib/db.c

  Modified: lib/db.c (+4 -3)
===================================================================
--- lib/db.c    2015-01-19 17:06:23 +0900 (8597c5d)
+++ lib/db.c    2015-01-19 17:20:15 +0900 (231f7af)
@@ -5643,9 +5643,10 @@ grn_accessor_get_value_(grn_ctx *ctx, grn_accessor *a, grn_id id, uint32_t *size
       break;
     case GRN_ACCESSOR_GET_SUM :
       if ((value = grn_obj_get_value_(ctx, a->obj, id, size))) {
-        value = grn_rset_recinfo_get_sum_(ctx,
-                                          (grn_rset_recinfo *)value,
-                                          a->obj);
+        value =
+          (const char *)grn_rset_recinfo_get_sum_(ctx,
+                                                  (grn_rset_recinfo *)value,
+                                                  a->obj);
         *size = GRN_RSET_SUM_SIZE;
       }
       break;
-------------- next part --------------
HTML����������������������������...
Download 



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