[Python-3000-checkins] r58990 - in python/branches/py3k/Modules/_ctypes: _ctypes.c libffi_msvc/prep_cif.c

thomas.heller python-3000-checkins at python.org
Thu Nov 15 21:03:00 CET 2007


Author: thomas.heller
Date: Thu Nov 15 21:03:00 2007
New Revision: 58990

Modified:
   python/branches/py3k/Modules/_ctypes/_ctypes.c
   python/branches/py3k/Modules/_ctypes/libffi_msvc/prep_cif.c
Log:
Fix two compiler warnings on Win64.


Modified: python/branches/py3k/Modules/_ctypes/_ctypes.c
==============================================================================
--- python/branches/py3k/Modules/_ctypes/_ctypes.c	(original)
+++ python/branches/py3k/Modules/_ctypes/_ctypes.c	Thu Nov 15 21:03:00 2007
@@ -1477,7 +1477,7 @@
 	StgDictObject *stgdict;
 	PyObject *proto;
 	const char *proto_str;
-	int proto_len;
+	Py_ssize_t proto_len;
 	PyMethodDef *ml;
 	struct fielddesc *fmt;
 

Modified: python/branches/py3k/Modules/_ctypes/libffi_msvc/prep_cif.c
==============================================================================
--- python/branches/py3k/Modules/_ctypes/libffi_msvc/prep_cif.c	(original)
+++ python/branches/py3k/Modules/_ctypes/libffi_msvc/prep_cif.c	Thu Nov 15 21:03:00 2007
@@ -163,7 +163,7 @@
 	    bytes = ALIGN(bytes, (*ptr)->alignment);
 	  
 #endif
-	  bytes += STACK_ARG_SIZE((*ptr)->size);
+	  bytes += (unsigned)STACK_ARG_SIZE((*ptr)->size);
 	}
 #endif
     }


More information about the Python-3000-checkins mailing list