Navigation Menu

Skip to content

Commit

Permalink
Add a missing cast
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 19, 2015
1 parent a745503 commit 70911da
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/db.c
Expand Up @@ -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;
Expand Down

0 comments on commit 70911da

Please sign in to comment.