New (faster) representation for tags added; faster construction of parentheses
[SXSI/XMLTree.git] / libcds / src / static_sequence / wt_node_internal.cpp
index ce5de07..b4727a3 100644 (file)
@@ -51,7 +51,7 @@ wt_node_internal::wt_node_internal(uint * symbols, uint n, uint l, wt_coder * c,
                }
        }
        if(count_left>0) {
-               if(match_left)
+               if(match_left/* && c->done(left[0],l+1)*/)
                        left_child = new wt_node_leaf(left[0], count_left);
                else
                        left_child = new wt_node_internal(left, count_left, l+1, c, bmb);
@@ -59,7 +59,7 @@ wt_node_internal::wt_node_internal(uint * symbols, uint n, uint l, wt_coder * c,
                left_child = NULL;
        }
        if(count_right>0) {
-               if(match_right)
+               if(match_right/* && c->done(right[0],l+1)*/)
                        right_child = new wt_node_leaf(right[0], count_right);
                else
                        right_child = new wt_node_internal(right, count_right, l+1, c, bmb);