]> granicus.if.org Git - python/commitdiff
Change the loop index in normalizestring() to size_t too, to avoid a
authorGuido van Rossum <guido@python.org>
Thu, 29 Jun 2000 14:50:15 +0000 (14:50 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 29 Jun 2000 14:50:15 +0000 (14:50 +0000)
warning on Windows.

Python/codecs.c

index ceff376a23e3d1b6eb0a23a22bfb19a8356e67bc..20df522350d9aef5b47233736e54105c0bd14660 100644 (file)
@@ -82,7 +82,7 @@ int PyCodec_Register(PyObject *search_function)
 static
 PyObject *normalizestring(const char *string)
 {
-    register int i;
+    register size_t i;
     size_t len = strlen(string);
     char *p;
     PyObject *v;