[Python-checkins] r46161 - python/trunk/Objects/unicodeobject.c
fredrik.lundh
python-checkins at python.org
Wed May 24 12:20:37 CEST 2006
Author: fredrik.lundh
Date: Wed May 24 12:20:36 2006
New Revision: 46161
Modified:
python/trunk/Objects/unicodeobject.c
Log:
use Py_ssize_t for string indexes (thanks, neal!)
Modified: python/trunk/Objects/unicodeobject.c
==============================================================================
--- python/trunk/Objects/unicodeobject.c (original)
+++ python/trunk/Objects/unicodeobject.c Wed May 24 12:20:36 2006
@@ -5068,8 +5068,8 @@
}
}
} 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;
More information about the Python-checkins
mailing list