diff options
Diffstat (limited to 'Modules/_io/bytesio.c')
-rw-r--r-- | Modules/_io/bytesio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/bytesio.c b/Modules/_io/bytesio.c index f643e91..82f3851 100644 --- a/Modules/_io/bytesio.c +++ b/Modules/_io/bytesio.c @@ -809,7 +809,7 @@ bytesio_sizeof(bytesio *self, void *unused) { Py_ssize_t res; - res = sizeof(bytesio); + res = _PyObject_SIZE(Py_TYPE(self)); if (self->buf) res += self->buf_size; return PyLong_FromSsize_t(res); |