@@ -15,7 +15,7 @@ typedef struct {
15
15
PyObject* comparator;
16
16
PyObject* tree;
17
17
size_t size;
18
- bool is_ordered_stastic ;
18
+ bool is_order_statistic ;
19
19
} BinaryTree;
20
20
21
21
static void BinaryTree_dealloc (BinaryTree *self) {
@@ -33,7 +33,7 @@ static PyObject* BinaryTree___new__(PyTypeObject* type, PyObject *args, PyObject
33
33
PyObject *key = PyObject_GetItem (args, PyZero);
34
34
PyObject *root_data = PyObject_GetItem (args, PyOne);
35
35
PyObject *comp = PyObject_GetItem (args, PyTwo);
36
- PyObject *is_ordered_statistic = PyObject_GetItem (args, PyThree);
36
+ PyObject *is_order_statistic = PyObject_GetItem (args, PyThree);
37
37
if ( (key == Py_None) && (root_data != Py_None) ) {
38
38
PyErr_SetString (PyExc_ValueError, " Key required." );
39
39
return NULL ;
@@ -58,7 +58,7 @@ static PyObject* BinaryTree___new__(PyTypeObject* type, PyObject *args, PyObject
58
58
else {
59
59
self->comparator = comp;
60
60
}
61
- self->is_ordered_statistic = is_ordered_statistic ;
61
+ self->is_order_statistic = is_order_statistic ;
62
62
63
63
return reinterpret_cast <PyObject*>(self);
64
64
}
@@ -109,7 +109,7 @@ static PyMemberDef BinaryTree_PyMemberDef[] = {
109
109
{" comparator" , T_OBJECT, offsetof (BinaryTree, comparator), 0 , " Comparator function" },
110
110
{" tree" , T_OBJECT, offsetof (BinaryTree, tree), 0 , " Tree" },
111
111
{" 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" },
113
113
{NULL } /* Sentinel */
114
114
};
115
115
0 commit comments