mirror of
https://github.com/python/cpython.git
synced 2025-08-31 22:18:28 +00:00
Fixes loop variables to be the same types as their limit (GH-120958)
This commit is contained in:
parent
2e157851e3
commit
e731554337
14 changed files with 26 additions and 26 deletions
|
@ -99,7 +99,7 @@ blob_close_impl(pysqlite_Blob *self)
|
|||
void
|
||||
pysqlite_close_all_blobs(pysqlite_Connection *self)
|
||||
{
|
||||
for (int i = 0; i < PyList_GET_SIZE(self->blobs); i++) {
|
||||
for (Py_ssize_t i = 0; i < PyList_GET_SIZE(self->blobs); i++) {
|
||||
PyObject *weakref = PyList_GET_ITEM(self->blobs, i);
|
||||
PyObject *blob;
|
||||
if (!PyWeakref_GetRef(weakref, &blob)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue