diff options
author | Benjamin Peterson <benjamin@python.org> | 2016-01-21 22:03:55 -0800 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2016-01-21 22:03:55 -0800 |
commit | 657d3ae3309db559d16282419fe11cc6657bced6 (patch) | |
tree | b501837f9aa05d3e39ee634f6eaaa2528c92a3f5 /Objects/codeobject.c | |
parent | eb5aec7b406102f9be08ffbdca88dbe4669a7462 (diff) | |
parent | 3743d7031afdd7546207bf0cc32f8eadefbd9b03 (diff) | |
download | cpython-657d3ae3309db559d16282419fe11cc6657bced6.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); |