summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorEric Snow <ericsnowcurrently@gmail.com>2021-05-27 15:54:34 (GMT)
committerGitHub <noreply@github.com>2021-05-27 15:54:34 (GMT)
commit9f494d492944c3a6a7a7471b4ad3a025dc7de289 (patch)
tree8cca83ea93a0bf38de318278a73155dfe4cbf4f7 /Include/cpython
parent318adeba780851c416505e48a3454cacca831419 (diff)
downloadcpython-9f494d492944c3a6a7a7471b4ad3a025dc7de289.zip
cpython-9f494d492944c3a6a7a7471b4ad3a025dc7de289.tar.gz
cpython-9f494d492944c3a6a7a7471b4ad3a025dc7de289.tar.bz2
bpo-43693: Add _PyCode_New(). (gh-26375)
This is an internal-only API that helps us manage the many values used to create a code object. https://bugs.python.org/issue43693
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/code.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/code.h b/Include/cpython/code.h
index 990f367..5c0fae4 100644
--- a/Include/cpython/code.h
+++ b/Include/cpython/code.h
@@ -64,7 +64,7 @@ struct PyCodeObject {
/* These fields are set with computed values on new code objects. */
- Py_ssize_t *co_cell2arg; /* Maps cell vars which are arguments. */
+ int *co_cell2arg; /* Maps cell vars which are arguments. */
// These are redundant but offer some performance benefit.
int co_nlocalsplus; /* number of local + cell + free variables */
int co_nlocals; /* number of local variables */