Kaydet (Commit) 25584b1b authored tarafından Christian Heimes's avatar Christian Heimes

Fixed a comment to C89 style as of…

Fixed a comment to C89 style as of http://drj11.wordpress.com/2008/10/02/python-and-bragging-about-c89/
üst f738f0b5
...@@ -517,7 +517,7 @@ frame_sizeof(PyFrameObject *f) ...@@ -517,7 +517,7 @@ frame_sizeof(PyFrameObject *f)
nfrees = PyTuple_GET_SIZE(f->f_code->co_freevars); nfrees = PyTuple_GET_SIZE(f->f_code->co_freevars);
extras = f->f_code->co_stacksize + f->f_code->co_nlocals + extras = f->f_code->co_stacksize + f->f_code->co_nlocals +
ncells + nfrees; 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 *); res = sizeof(PyFrameObject) + (extras-1) * sizeof(PyObject *);
return PyInt_FromSsize_t(res); return PyInt_FromSsize_t(res);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment