]> granicus.if.org Git - python/commitdiff
Fix compiler warning.
authorThomas Heller <theller@ctypes.org>
Sat, 18 Mar 2006 12:52:54 +0000 (12:52 +0000)
committerThomas Heller <theller@ctypes.org>
Sat, 18 Mar 2006 12:52:54 +0000 (12:52 +0000)
Modules/_ctypes/_ctypes_test.c

index a46f5e41e7663ae033318d19b57379b7be94bc6f..70003029bdc606a3e4f0173f765dae534ff72a48 100644 (file)
@@ -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;