mirror of
https://github.com/xfarrow/lasd.git
synced 2025-06-05 21:49:14 +02:00
Librray 3
bugfix on BinaryTree<Data>::Node::EqualNodes
This commit is contained in:
@ -32,7 +32,7 @@ bool BinaryTreeVec<Data>::NodeVec::IsLeaf() const noexcept{
|
||||
|
||||
template <typename Data>
|
||||
bool BinaryTreeVec<Data>::NodeVec::HasLeftChild() const noexcept{
|
||||
if(index*2+1 < ReferenceToTree->size){
|
||||
if( (index*2)+1 < ReferenceToTree->size){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
@ -41,7 +41,7 @@ bool BinaryTreeVec<Data>::NodeVec::HasLeftChild() const noexcept{
|
||||
|
||||
template <typename Data>
|
||||
bool BinaryTreeVec<Data>::NodeVec::HasRightChild() const noexcept{
|
||||
if(index*2+2 < ReferenceToTree->size){
|
||||
if((index*2)+2 < ReferenceToTree->size){
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user