summaryrefslogtreecommitdiff
path: root/Objects/unicodeobject.c
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2006-05-24 10:20:36 +0000
committerFredrik Lundh <fredrik@pythonware.com>2006-05-24 10:20:36 +0000
commit240bf2a8e48369e330bfd25e3a346e3f18151006 (patch)
tree6709301c3421a0091877953bc981cca807fda4a1 /Objects/unicodeobject.c
parent8ff672e62d69afb4a6ce5cecfe61a4eb3f35dc81 (diff)
downloadcpython-git-240bf2a8e48369e330bfd25e3a346e3f18151006.tar.gz
use Py_ssize_t for string indexes (thanks, neal!)
Diffstat (limited to 'Objects/unicodeobject.c')
-rw-r--r--Objects/unicodeobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index c5e87a8519..4bb0eae8c7 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -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;