diff Objects/stringobject.c @ 38339:1670ff726e8f legacy-trunk

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 ;-)
author Fredrik Lundh <fredrik@pythonware.com>
date Fri, 26 May 2006 10:27:17 +0000
parents 958f91684209
children 6d8615f9f1cc
line wrap: on
line diff
--- a/Objects/stringobject.c	Fri May 26 09:46:59 2006 +0000
+++ b/Objects/stringobject.c	Fri May 26 10:27:17 2006 +0000
@@ -802,7 +802,7 @@
 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;