summaryrefslogtreecommitdiffstats
path: root/Objects/frameobject.c
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-05-21 18:15:39 (GMT)
committerGitHub <noreply@github.com>2021-05-21 18:15:39 (GMT)
commit498383c019c1209f6fecf8f64ce44fbf437191da (patch)
tree22dddd07bd06322732d92e95e3c2fddf86970e72 /Objects/frameobject.c
parentb06ed1d883cd79c920c514d8a1f4643cf93dc5e0 (diff)
downloadcpython-498383c019c1209f6fecf8f64ce44fbf437191da.zip
cpython-498383c019c1209f6fecf8f64ce44fbf437191da.tar.gz
cpython-498383c019c1209f6fecf8f64ce44fbf437191da.tar.bz2
bpo-44032: Fix downcast conversion in frameobject.c (GH-26291)
Diffstat (limited to 'Objects/frameobject.c')
-rw-r--r--Objects/frameobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/frameobject.c b/Objects/frameobject.c
index 1781c3c..87c4852 100644
--- a/Objects/frameobject.c
+++ b/Objects/frameobject.c
@@ -838,7 +838,7 @@ _PyFrame_TakeLocals(PyFrameObject *f)
{
assert(f->f_own_locals_memory == 0);
assert(f->f_stackdepth == 0);
- int size = frame_nslots(f);
+ Py_ssize_t size = frame_nslots(f);
PyObject **copy = PyMem_Malloc(sizeof(PyObject *)*size);
if (copy == NULL) {
for (int i = 0; i < size; i++) {