Changeset: 09bbea8990aa for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=09bbea8990aa Modified Files: gdk/gdk_group.c Branch: default Log Message:
Cast to correct type before shifting. diffs (15 lines): diff --git a/gdk/gdk_group.c b/gdk/gdk_group.c --- a/gdk/gdk_group.c +++ b/gdk/gdk_group.c @@ -333,8 +333,9 @@ BATgroup_internal(BAT **groups, BAT **ex maxgrps += BATcount(h); if (maxgrps < GROUPBATINCR) maxgrps = GROUPBATINCR; - if (b->T->width <= 2 && maxgrps > (1<<(8<<(b->T->width==2?1:0)))) - maxgrps = 1 << (8<<(b->T->width==2?1:0)); + if (b->T->width <= 2 && + maxgrps > ((BUN) 1 << (8 << (b->T->width == 2 ? 1 : 0)))) + maxgrps = (BUN) 1 << (8 << (b->T->width == 2 ? 1 : 0)); if (extents) { en = BATnew(TYPE_void, TYPE_oid, maxgrps); if (en == NULL) _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list