Changeset: ab0c5c30968d for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=ab0c5c30968d
Modified Files:
        gdk/gdk_aggr.c
Branch: unlock
Log Message:

small fix counting nr of 1s in msk empty bat


diffs (12 lines):

diff --git a/gdk/gdk_aggr.c b/gdk/gdk_aggr.c
--- a/gdk/gdk_aggr.c
+++ b/gdk/gdk_aggr.c
@@ -981,7 +981,7 @@ mskCountOnes(BAT *b, struct canditer *ci
 {
        BUN cnt = 0, ncand = ci->ncand;
 
-       if (ci->tpe == cand_dense) {
+       if (ci->tpe == cand_dense && BATcount(b)) {
                const uint32_t *restrict src = Tloc(b, (ci->seq - b->hseqbase) 
/ 32);
                int bits = (ci->seq - b->hseqbase) % 32;
                if (bits + ncand <= 32) {
_______________________________________________
checkin-list mailing list
checkin-list@monetdb.org
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to