From 498383c019c1209f6fecf8f64ce44fbf437191da Mon Sep 17 00:00:00 2001 From: Pablo Galindo Date: Fri, 21 May 2021 19:15:39 +0100 Subject: bpo-44032: Fix downcast conversion in frameobject.c (GH-26291) --- Objects/frameobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++) { -- cgit v0.12