diff options
author | Thomas Heller <theller@ctypes.org> | 2006-03-18 12:52:54 (GMT) |
---|---|---|
committer | Thomas Heller <theller@ctypes.org> | 2006-03-18 12:52:54 (GMT) |
commit | f4063ca8bc632311974f3c5225d868183c653401 (patch) | |
tree | 70374b85891593250f774ad9c0508fa9434986df /Modules/_ctypes | |
parent | ddb84d7c69addc5d5e2ab3e327260d97b52af3a7 (diff) | |
download | cpython-f4063ca8bc632311974f3c5225d868183c653401.zip cpython-f4063ca8bc632311974f3c5225d868183c653401.tar.gz cpython-f4063ca8bc632311974f3c5225d868183c653401.tar.bz2 |
Fix compiler warning.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r-- | Modules/_ctypes/_ctypes_test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_ctypes/_ctypes_test.c b/Modules/_ctypes/_ctypes_test.c index a46f5e4..7000302 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; |