From: Thomas Heller Date: Sat, 18 Mar 2006 12:52:54 +0000 (+0000) Subject: Fix compiler warning. X-Git-Tag: v2.5a0~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f4063ca8bc632311974f3c5225d868183c653401;p=thirdparty%2FPython%2Fcpython.git Fix compiler warning. --- diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c index a46f5e41e766..70003029bdc6 100644 --- a/Modules/_ctypes/_ctypes_test.c +++ b/Modules/_ctypes/_ctypes_test.c @@ -99,7 +99,7 @@ EXPORT(char *) my_strdup(char *src) #ifdef HAVE_WCHAR_H EXPORT(wchar_t *) my_wcsdup(wchar_t *src) { - int len = wcslen(src); + size_t len = wcslen(src); wchar_t *ptr = malloc((len + 1) * sizeof(wchar_t)); if (ptr == NULL) return NULL;