Skip to content

Commit 9fc8c87

Browse files
committed
check
1 parent 66e6890 commit 9fc8c87

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
@@ -42,7 +42,7 @@ static PyObject* BinaryTree___new__(PyTypeObject* type, PyObject *args, PyObject
4242
Py_INCREF(Py_None);
4343
key = root_data == Py_None ? Py_None : key; // This key is the argument, not self->key
4444

45-
TreeNode* root = TreeNode___new__(&TreeNodeType, key, root_data); // check if this is correct
45+
TreeNode* root = reinterpret_cast<TreeNode*>(TreeNode___new__(&TreeNodeType, key, root_data)); // check if this is correct
4646
root->is_root = true;
4747

4848
self->root_idx = 0;

0 commit comments

Comments
 (0)