Skip to content

Commit

Permalink
ii: check GRN_OBJ_WITH_POSITION explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 30, 2017
1 parent ac6ef48 commit ca1cb6f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/ii.c
Original file line number Diff line number Diff line change
Expand Up @@ -5194,7 +5194,9 @@ grn_ii_cursor_next_internal(grn_ctx *ctx, grn_ii_cursor *c,
if ((c->ii->header->flags & GRN_OBJ_WITH_WEIGHT)) {
c->cwp = c->rdv[j++].data;
}
c->cpp = c->rdv[j].data;
if ((c->ii->header->flags & GRN_OBJ_WITH_POSITION)) {
c->cpp = c->rdv[j].data;
}
}
c->prev_chunk_rid = c->pc.rid;
c->pc.rid = 0;
Expand Down

0 comments on commit ca1cb6f

Please sign in to comment.