Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 3383113

Browse files
committed
Change the loop index in normalizestring() to size_t too, to avoid a
warning on Windows.
1 parent a22a0b3 commit 3383113

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/codecs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ int PyCodec_Register(PyObject *search_function)
8282
static
8383
PyObject *normalizestring(const char *string)
8484
{
85-
register int i;
85+
register size_t i;
8686
size_t len = strlen(string);
8787
char *p;
8888
PyObject *v;

0 commit comments

Comments
 (0)