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

Use BATconstant's first argument for what it is for.


diffs (37 lines):

diff --git a/gdk/gdk_aggr.c b/gdk/gdk_aggr.c
--- a/gdk/gdk_aggr.c
+++ b/gdk/gdk_aggr.c
@@ -501,7 +501,7 @@ BATgroupsum(BAT *b, BAT *g, BAT *e, BAT 
                return BATconvert(b, s, tp, abort_on_error);
        }
 
-       bn = BATconstant(0, tp, ATOMnilptr(tp), ngrp, TRANSIENT);
+       bn = BATconstant(min, tp, ATOMnilptr(tp), ngrp, TRANSIENT);
        if (bn == NULL) {
                return NULL;
        }
@@ -518,7 +518,6 @@ BATgroupsum(BAT *b, BAT *g, BAT *e, BAT 
 
        if (nils < BUN_NONE) {
                BATsetcount(bn, ngrp);
-               BATseqbase(bn, min);
                bn->tkey = BATcount(bn) <= 1;
                bn->tsorted = BATcount(bn) <= 1;
                bn->trevsorted = BATcount(bn) <= 1;
@@ -1106,7 +1105,7 @@ BATgroupprod(BAT *b, BAT *g, BAT *e, BAT
                return BATconvert(b, s, tp, abort_on_error);
        }
 
-       bn = BATconstant(0, tp, ATOMnilptr(tp), ngrp, TRANSIENT);
+       bn = BATconstant(min, tp, ATOMnilptr(tp), ngrp, TRANSIENT);
        if (bn == NULL) {
                return NULL;
        }
@@ -1123,7 +1122,6 @@ BATgroupprod(BAT *b, BAT *g, BAT *e, BAT
 
        if (nils < BUN_NONE) {
                BATsetcount(bn, ngrp);
-               BATseqbase(bn, min);
                bn->tkey = BATcount(bn) <= 1;
                bn->tsorted = BATcount(bn) <= 1;
                bn->trevsorted = BATcount(bn) <= 1;
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to