Skip to content

Commit fae502d

Browse files
committed
TreeNode arg in ArrayForTrees()
1 parent b18ecf4 commit fae502d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pydatastructs/trees/_backend/cpp/BinaryTree.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ static PyObject* BinaryTree___new__(PyTypeObject* type, PyObject *args, PyObject
4949

5050
// obj.tree= ArrayForTrees(TreeNode, [root])
5151
PyObject* listroot = Py_BuildValue("[i]", root);
52-
self->tree = PyObject_CallMethod(reinterpret_cast<PyObject*>(&ArrayForTreesType),"__new__", "O", listroot);
52+
self->tree = PyObject_CallMethod(reinterpret_cast<PyObject*>(&ArrayForTreesType),"__new__", "OO", &TreeNodeType, listroot);
5353
self->size = 1;
5454

5555
if(comp == Py_None){

0 commit comments

Comments
 (0)