[Python-checkins] r43133 - python/trunk/Modules/_ctypes/_ctypes_test.c

thomas.heller python-checkins at python.org
Sat Mar 18 13:52:55 CET 2006


Author: thomas.heller
Date: Sat Mar 18 13:52:54 2006
New Revision: 43133

Modified:
   python/trunk/Modules/_ctypes/_ctypes_test.c
Log:
Fix compiler warning.

Modified: python/trunk/Modules/_ctypes/_ctypes_test.c
==============================================================================
--- python/trunk/Modules/_ctypes/_ctypes_test.c	(original)
+++ python/trunk/Modules/_ctypes/_ctypes_test.c	Sat Mar 18 13:52:54 2006
@@ -99,7 +99,7 @@
 #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;


More information about the Python-checkins mailing list