Commit 240bf2a8 authored by Fredrik Lundh's avatar Fredrik Lundh

use Py_ssize_t for string indexes (thanks, neal!)

parent 8ff672e6
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment