diff options
-rw-r--r-- | Misc/NEWS | 3 | ||||
-rw-r--r-- | Objects/frameobject.c | 2 |
2 files changed, 4 insertions, 1 deletions
@@ -12,6 +12,9 @@ What's New in Python 2.6.1 alpha 1 Core and Builtins ----------------- +- Fixed a broken comment in Objects/frameobject.c. Python is now C89 compatible + again. + Library ------- diff --git a/Objects/frameobject.c b/Objects/frameobject.c index 079c83171b..489e8bbe1f 100644 --- a/Objects/frameobject.c +++ b/Objects/frameobject.c @@ -517,7 +517,7 @@ frame_sizeof(PyFrameObject *f) nfrees = PyTuple_GET_SIZE(f->f_code->co_freevars); extras = f->f_code->co_stacksize + f->f_code->co_nlocals + ncells + nfrees; - // subtract one as it is already included in PyFrameObject + /* subtract one as it is already included in PyFrameObject */ res = sizeof(PyFrameObject) + (extras-1) * sizeof(PyObject *); return PyInt_FromSsize_t(res); |