Skip to content

Commit 62595ad

Browse files
committed
check
1 parent 9fc8c87 commit 62595ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

pydatastructs/trees/_backend/cpp/BinaryTree.hpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ typedef struct {
1515
PyObject* comparator;
1616
PyObject* tree;
1717
size_t size;
18-
bool is_ordered_stastic;
18+
bool is_order_statistic;
1919
} BinaryTree;
2020

2121
static void BinaryTree_dealloc(BinaryTree *self) {
@@ -33,7 +33,7 @@ static PyObject* BinaryTree___new__(PyTypeObject* type, PyObject *args, PyObject
3333
PyObject *key = PyObject_GetItem(args, PyZero);
3434
PyObject *root_data = PyObject_GetItem(args, PyOne);
3535
PyObject *comp = PyObject_GetItem(args, PyTwo);
36-
PyObject *is_ordered_statistic = PyObject_GetItem(args, PyThree);
36+
PyObject *is_order_statistic = PyObject_GetItem(args, PyThree);
3737
if( (key == Py_None) && (root_data != Py_None) ) {
3838
PyErr_SetString(PyExc_ValueError, "Key required.");
3939
return NULL;
@@ -58,7 +58,7 @@ static PyObject* BinaryTree___new__(PyTypeObject* type, PyObject *args, PyObject
5858
else{
5959
self->comparator = comp;
6060
}
61-
self->is_ordered_statistic = is_ordered_statistic;
61+
self->is_order_statistic = is_order_statistic;
6262

6363
return reinterpret_cast<PyObject*>(self);
6464
}
@@ -109,7 +109,7 @@ static PyMemberDef BinaryTree_PyMemberDef[] = {
109109
{"comparator", T_OBJECT, offsetof(BinaryTree, comparator), 0, "Comparator function"},
110110
{"tree", T_OBJECT, offsetof(BinaryTree, tree), 0, "Tree"},
111111
{"size", T_PYSSIZET, offsetof(BinaryTree, size), READONLY, "Size of the tree"},
112-
{"is_ordered_stastic", T_BOOL, offsetof(BinaryTree, is_ordered_stastic), 0, "Whether the tree is ordered statically or not"},
112+
{"is_order_statistic", T_BOOL, offsetof(BinaryTree, is_order_statistic), 0, "Whether the tree is ordered statically or not"},
113113
{NULL} /* Sentinel */
114114
};
115115

0 commit comments

Comments
 (0)