diff options
Diffstat (limited to 'Modules/_struct.c')
-rw-r--r-- | Modules/_struct.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_struct.c b/Modules/_struct.c index bca7a2e..02dd7d3 100644 --- a/Modules/_struct.c +++ b/Modules/_struct.c @@ -1737,7 +1737,7 @@ s_sizeof(PyStructObject *self, void *unused) { Py_ssize_t size; - size = sizeof(PyStructObject) + sizeof(formatcode) * (self->s_len + 1); + size = _PyObject_SIZE(Py_TYPE(self)) + sizeof(formatcode) * (self->s_len + 1); return PyLong_FromSsize_t(size); } |