Skip to content

Commit 498383c

Browse files
authored
bpo-44032: Fix downcast conversion in frameobject.c (GH-26291)
1 parent b06ed1d commit 498383c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Objects/frameobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -838,7 +838,7 @@ _PyFrame_TakeLocals(PyFrameObject *f)
838838
{
839839
assert(f->f_own_locals_memory == 0);
840840
assert(f->f_stackdepth == 0);
841-
int size = frame_nslots(f);
841+
Py_ssize_t size = frame_nslots(f);
842842
PyObject **copy = PyMem_Malloc(sizeof(PyObject *)*size);
843843
if (copy == NULL) {
844844
for (int i = 0; i < size; i++) {

0 commit comments

Comments
 (0)