tp_basicsize is the size of the allocated object, not of the class.
Fixes: 96c524c4951c ("bindings: implement python bindings")
Signed-off-by: Jiri Benc <jbenc@upir.cz>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
static PyTypeObject gpiod_LineBulkType = {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = "gpiod.LineBulk",
- .tp_basicsize = sizeof(gpiod_LineBulkType),
+ .tp_basicsize = sizeof(gpiod_LineBulkObject),
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_doc = gpiod_LineBulkType_doc,
.tp_new = PyType_GenericNew,