Create a branch by copying library-split to avoid having to merge from git.
[SXSI/TextCollection.git] / swcsa / buildFacade.c
index 3647e99..b581059 100755 (executable)
@@ -823,7 +823,7 @@ int build_WCSA (uchar *text, ulong length, char *build_options, void **index) {
                tmpOffsets[zeroNode]=tmpOffset; //setting pointer to the "virtual" word {zeroNode+1}^{th}
                
                //kbit encoding of the offsets
-               uint elemSize = bits(tmpOffset);
+               uint elemSize = _bits(tmpOffset);
                wcsa->wordsData.elemSize = elemSize;
                wcsa->wordsData.words = (uint *) malloc (((((zeroNode +1)*elemSize)+W-1) /W) * sizeof(uint));  //with 1 extra slot !.
                wcsa->wordsData.words[((((zeroNode +1)*elemSize)+W-1) /W)   -1 ] =0000;