projects
/
SXSI
/
XMLTree.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added new functions
[SXSI/XMLTree.git]
/
libcds
/
src
/
static_sequence
/
static_sequence_wvtree.cpp
diff --git
a/libcds/src/static_sequence/static_sequence_wvtree.cpp
b/libcds/src/static_sequence/static_sequence_wvtree.cpp
index
ef504bd
..
0e08676
100644
(file)
--- a/
libcds/src/static_sequence/static_sequence_wvtree.cpp
+++ b/
libcds/src/static_sequence/static_sequence_wvtree.cpp
@@
-40,7
+40,12
@@
static_sequence_wvtree::static_sequence_wvtree(uchar * symbols, uint n, wt_coder
am->use();
this->c=c;
c->use();
am->use();
this->c=c;
c->use();
- root = new wt_node_internal(symbols, n, 0, c, bmb);
+ uint *done = new uint[n/W+1];
+ for (uint i = 0; i < n/W+1; i++)
+ done[i] = 0;
+ root = new wt_node_internal(symbols, n, 0, c, bmb, 0, done);
+ delete [] done;
+ delete [] symbols;
symbols = 0; // Already deleted!
// for(uint i=0;i<n;i++)
// symbols[i] = (uchar)am->unmap((uint)symbols[i]);
symbols = 0; // Already deleted!
// for(uint i=0;i<n;i++)
// symbols[i] = (uchar)am->unmap((uint)symbols[i]);