Kaydet (Commit) f2c0dfdb authored tarafından Fredrik Lundh's avatar Fredrik Lundh

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 ;-)
üst 450277fe
......@@ -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;
......
......@@ -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;
......
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