diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-01-20 22:07:43 -0800 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-01-20 22:07:43 -0800 |
commit | efd66823ecd8a4cd118cc01a9e391603562ab95e (patch) | |
tree | 3842fee7c14c607d0d3cfb82e824b9d3bf2042f9 /Objects/codeobject.c | |
parent | b4858f2a3459bfb7f37164c1a1b746022053c42c (diff) | |
parent | b3aee159546a73b97134fd0873a868f83fb1a9a7 (diff) | |
download | cpython-efd66823ecd8a4cd118cc01a9e391603562ab95e.tar.gz |
merge 3.4
Diffstat (limited to 'Objects/codeobject.c')
-rw-r--r-- | Objects/codeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/codeobject.c b/Objects/codeobject.c index 353f414a38..b0e34468a7 100644 --- a/Objects/codeobject.c +++ b/Objects/codeobject.c @@ -384,7 +384,7 @@ code_sizeof(PyCodeObject *co, void *unused) { Py_ssize_t res; - res = sizeof(PyCodeObject); + res = _PyObject_SIZE(Py_TYPE(co)); if (co->co_cell2arg != NULL && co->co_cellvars != NULL) res += PyTuple_GET_SIZE(co->co_cellvars) * sizeof(unsigned char); return PyLong_FromSsize_t(res); |