Changeset: 8b0026a7fec4 for MonetDB URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8b0026a7fec4 Modified Files: gdk/gdk_batop.c Branch: unlock Log Message:
set pointer after BATextend diffs (20 lines): diff --git a/gdk/gdk_batop.c b/gdk/gdk_batop.c --- a/gdk/gdk_batop.c +++ b/gdk/gdk_batop.c @@ -508,13 +508,13 @@ append_varsized_bat(BAT *b, BAT *n, stru static gdk_return append_msk_bat(BAT *b, BAT *n, struct canditer *ci) { - uint32_t boff = b->batCount % 32; - uint32_t *bp = (uint32_t *) b->theap->base + b->batCount / 32; - if (ci->ncand == 0) return GDK_SUCCEED; if (BATextend(b, BATcount(b) + ci->ncand) != GDK_SUCCEED) return GDK_FAIL; + + uint32_t boff = b->batCount % 32; + uint32_t *bp = (uint32_t *) b->theap->base + b->batCount / 32; b->batCount += ci->ncand; b->theap->free = ((b->batCount + 31) / 32) * 4; if (ci->tpe == cand_dense) { _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list