diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 10:27:17 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2006-05-26 10:27:17 (GMT) |
commit | f2c0dfdb138c44ce230d86f9429a373e6e160307 (patch) | |
tree | 8092b08c44feacdddd883df2f77906f46b7870d9 /Objects/stringobject.c | |
parent | 450277fef50c213b14b88c4fe939bd32eeecee36 (diff) | |
download | cpython-f2c0dfdb138c44ce230d86f9429a373e6e160307.zip cpython-f2c0dfdb138c44ce230d86f9429a373e6e160307.tar.gz cpython-f2c0dfdb138c44ce230d86f9429a373e6e160307.tar.bz2 |
needforspeed: use Py_ssize_t for the fastsearch counter and skip
length (thanks, neal!). and yes, I've verified that this doesn't
slow things down ;-)
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r-- | Objects/stringobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c index 0aa1e5b3..b4c8950 100644 --- a/Objects/stringobject.c +++ b/Objects/stringobject.c @@ -802,7 +802,7 @@ LOCAL(Py_ssize_t) fastsearch(const char* s, Py_ssize_t n, const char* p, Py_ssize_t m, int mode) { long mask; - int skip, count = 0; + Py_ssize_t skip, count = 0; Py_ssize_t i, j, mlast, w; w = n - m; |