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 | |
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')
-rw-r--r-- | Objects/stringobject.c | 2 | ||||
-rw-r--r-- | Objects/unicodeobject.c | 2 |
2 files changed, 2 insertions, 2 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; diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c index 8291400..0dea75d 100644 --- a/Objects/unicodeobject.c +++ b/Objects/unicodeobject.c @@ -3884,7 +3884,7 @@ LOCAL(Py_ssize_t) fastsearch(Py_UNICODE* s, Py_ssize_t n, Py_UNICODE* 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; |