mirror of
https://github.com/python/cpython.git
synced 2025-08-22 09:45:06 +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
|
@ -146,7 +146,7 @@ _Py_CalculateSuggestions(PyObject *dir,
|
|||
if (buffer == NULL) {
|
||||
return PyErr_NoMemory();
|
||||
}
|
||||
for (int i = 0; i < dir_size; ++i) {
|
||||
for (Py_ssize_t i = 0; i < dir_size; ++i) {
|
||||
PyObject *item = PyList_GET_ITEM(dir, i);
|
||||
if (_PyUnicode_Equal(name, item)) {
|
||||
continue;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue