Skip to content

Commit b2207aa

Browse files
committed
chore: using _PyObject_SIZE
1 parent f3e6e18 commit b2207aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/_queuemodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -509,7 +509,7 @@ static Py_ssize_t
509509
_queue_SimpleQueue___sizeof___impl(simplequeueobject *self)
510510
/*[clinic end generated code: output=58ce4e3bbc078fd4 input=40a793cdf1c78c30]*/
511511
{
512-
Py_ssize_t size = Py_TYPE(self)->tp_basicsize;
512+
Py_ssize_t size = _PyObject_SIZE(Py_TYPE(self));
513513
size += self->buf.items_cap * sizeof(PyObject *);
514514
return size;
515515
}

0 commit comments

Comments
 (0)