Changeset: dc7944e8107b for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=dc7944e8107b Modified Files: monetdb5/modules/mal/mat.c Branch: default Log Message:
We have a macro for that... diffs (12 lines): diff --git a/monetdb5/modules/mal/mat.c b/monetdb5/modules/mal/mat.c --- a/monetdb5/modules/mal/mat.c +++ b/monetdb5/modules/mal/mat.c @@ -110,7 +110,7 @@ MATpackIncrement(Client cntxt, MalBlkPtr if ( getArgType(mb,p,2) == TYPE_int){ /* first step, estimate with some slack */ pieces = stk->stk[getArg(p,2)].val.ival; - bn = COLnew(b->hseqbase, b->ttype?b->ttype:TYPE_oid, (BUN)(1.2 * BATcount(b) * pieces), TRANSIENT); + bn = COLnew(b->hseqbase, ATOMtype(b->ttype), (BUN)(1.2 * BATcount(b) * pieces), TRANSIENT); if (bn == NULL) throw(MAL, "mat.pack", MAL_MALLOC_FAIL); /* allocate enough space for the vheap, but not for strings, _______________________________________________ checkin-list mailing list checkin-list@monetdb.org https://www.monetdb.org/mailman/listinfo/checkin-list