Skip to content

Commit 5e904c9

Browse files
committed
minor update
1 parent 9d20577 commit 5e904c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydatastructs/trees/_backend/cpp/BinarySearchTree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ static PyObject* BinarySearchTree_delete(BinarySearchTree* self, PyObject *args,
310310
reinterpret_cast<TreeNode*>(bt->tree->_one_dimensional_array->_data[PyLong_AsLong(parent)])->right = child;
311311
}
312312
reinterpret_cast<TreeNode*>(bt->tree->_one_dimensional_array->_data[PyLong_AsLong(child)])->parent = parent;
313-
PyObject* a = parent;
313+
a = parent;
314314
PyObject* par_key = reinterpret_cast<TreeNode*>(bt->tree->_one_dimensional_array->_data[PyLong_AsLong(parent)])->key;
315315
PyObject* root_key = reinterpret_cast<TreeNode*>(bt->tree->_one_dimensional_array->_data[PyLong_AsLong(bt->root_idx)])->key;
316316
PyObject* new_indices = ArrayForTrees_delete(bt->tree, Py_BuildValue("(O)",walk));

0 commit comments

Comments
 (0)