Skip to content

Commit

Permalink
Merge pull request simongog#186 from lespeholt/master
Browse files Browse the repository at this point in the history
Renaming bug fix
  • Loading branch information
simongog committed May 19, 2014
2 parents da70b32 + 4a1f436 commit da06f5f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/sdsl/cst_iterators.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ class cst_bottom_up_const_forward_iterator: public std::iterator<std::forward_it
if (w == m_cst->root()) { // if no next right sibling exist
m_v = m_cst->parent(m_v); // go to parent
} else { // if next right sibling exist
m_v = m_cst->leftmost_leaf_in_the_subtree(w); // go to leaftmost leaf in the subtree of w
m_v = m_cst->leftmost_leaf(w); // go to leaftmost leaf in the subtree of w
}
return *this;
}
Expand Down
2 changes: 1 addition & 1 deletion include/sdsl/cst_sada.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class cst_sada
const_bottom_up_iterator begin_bottom_up()const {
if (0 == m_bp.size()) // special case: tree is uninitialized
return end_bottom_up();
return const_bottom_up_iterator(this, leftmost_leaf_in_the_subtree(root()));
return const_bottom_up_iterator(this, leftmost_leaf(root()));
}

//! Returns an iterator to the element after the last element of a bottom-up traversal of the tree.
Expand Down

0 comments on commit da06f5f

Please sign in to comment.