Changeset: 11a16355615c for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=11a16355615c
Modified Files:
        monetdb5/modules/mal/bitcandidates.c
Branch: compressedcandidates
Log Message:

Allocate the proper space


diffs (17 lines):

diff --git a/monetdb5/modules/mal/bitcandidates.c 
b/monetdb5/modules/mal/bitcandidates.c
--- a/monetdb5/modules/mal/bitcandidates.c
+++ b/monetdb5/modules/mal/bitcandidates.c
@@ -95,11 +95,11 @@ BCLdecompress(Client cntxt, MalBlkPtr mb
        fprintf(stderr,"#decompress %d base "OIDFMT","OIDFMT"\n", 
b->batCacheid, b->hseqbase,b->tseqbase);
 #endif
 
-       bn = COLnew(0, TYPE_oid, BATcount(b), TRANSIENT);
+       limit= BATcount(b) * bits;
+       bn = COLnew(0, TYPE_oid, limit, TRANSIENT);
        if ( bn == 0)
                throw(MAL,"decompress",MAL_MALLOC_FAIL);
        p = (oid*) Tloc(bn,0);
-       limit= BATcount(b) * bits;
        o = b->tseqbase;
        for ( i = 0; i < limit; i++, o++)
        if( isset( vect, i) ){
_______________________________________________
checkin-list mailing list
[email protected]
https://www.monetdb.org/mailman/listinfo/checkin-list

Reply via email to