mirror of
https://github.com/python/cpython.git
synced 2025-10-18 04:38:07 +00:00
Fred's right -- we need PyList_SET_ITEM().
This commit is contained in:
parent
7b7a2c2e11
commit
a937d14898
4 changed files with 12 additions and 1 deletions
|
@ -1282,7 +1282,7 @@ builtin_range(self, args)
|
|||
Py_DECREF(v);
|
||||
return NULL;
|
||||
}
|
||||
PyList_GET_ITEM(v, i) = w;
|
||||
PyList_SET_ITEM(v, i, w);
|
||||
ilow += istep;
|
||||
}
|
||||
return v;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue