mirror of
https://github.com/python/cpython.git
synced 2025-09-15 13:16:12 +00:00
use Py_ssize_t for string indexes (thanks, neal!)
This commit is contained in:
parent
8ff672e62d
commit
240bf2a8e4
1 changed files with 2 additions and 2 deletions
|
@ -5068,8 +5068,8 @@ int PyUnicode_Contains(PyObject *container,
|
|||
}
|
||||
}
|
||||
} else {
|
||||
int start = 0;
|
||||
int end = PyUnicode_GET_SIZE(u) - size;
|
||||
Py_ssize_t start = 0;
|
||||
Py_ssize_t end = PyUnicode_GET_SIZE(u) - size;
|
||||
for (; start <= end; start++)
|
||||
if (Py_UNICODE_MATCH(u, start, v)) {
|
||||
result = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue