mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-44032: Fix downcast conversion in frameobject.c (GH-26291)
This commit is contained in:
parent
b06ed1d883
commit
498383c019
1 changed files with 1 additions and 1 deletions
|
@ -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++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue