Skip to content

Commit

Permalink
check 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Kishan-Ved committed Jun 20, 2024
1 parent 4aeac37 commit 0909eb4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pydatastructs/trees/_backend/cpp/SplayTree.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ static PyObject* SplayTree_join(SplayTree *self, PyObject* args) {
}

SplayTree_splay(self, Py_BuildValue("(OO)", maxm, reinterpret_cast<TreeNode*>(bt->tree->_one_dimensional_array->_data[PyLong_AsLong(maxm)])->parent));
long idx_update = self->tree->_size;
long idx_update = bt->tree->_one_dimensional_array->_size;
long n = obt->tree->_one_dimensional_array->_size;
for (int i=0; i<n; i++) {
PyObject* node = obt->tree->_one_dimensional_array->_data[i];
Expand Down
2 changes: 1 addition & 1 deletion pydatastructs/trees/tests/test_binary_trees.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ def test_SplayTree():

def test_cpp_SplayTree():
_test_SplayTree(Backend.CPP)
test_cpp_SplayTree()

def _test_RedBlackTree(backend):
tree = RedBlackTree(backend=backend)
tree.insert(10, 10)
Expand Down

0 comments on commit 0909eb4

Please sign in to comment.