From: Thomas Heller Date: Thu, 15 Nov 2007 20:03:00 +0000 (+0000) Subject: Fix two compiler warnings on Win64. X-Git-Tag: v3.0a2~181 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6e8ea0fd9c46978cf3101bd3ea94022751464ad9;p=thirdparty%2FPython%2Fcpython.git Fix two compiler warnings on Win64. --- diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c index 39dfdefec2ca..05a9fca4bf6d 100644 --- a/Modules/_ctypes/_ctypes.c +++ b/Modules/_ctypes/_ctypes.c @@ -1477,7 +1477,7 @@ SimpleType_new(PyTypeObject *type, PyObject *args, PyObject *kwds) StgDictObject *stgdict; PyObject *proto; const char *proto_str; - int proto_len; + Py_ssize_t proto_len; PyMethodDef *ml; struct fielddesc *fmt; diff --git a/Modules/_ctypes/libffi_msvc/prep_cif.c b/Modules/_ctypes/libffi_msvc/prep_cif.c index 2650fa05254e..cd623a1462c9 100644 --- a/Modules/_ctypes/libffi_msvc/prep_cif.c +++ b/Modules/_ctypes/libffi_msvc/prep_cif.c @@ -163,7 +163,7 @@ ffi_status ffi_prep_cif(/*@out@*/ /*@partial@*/ ffi_cif *cif, bytes = ALIGN(bytes, (*ptr)->alignment); #endif - bytes += STACK_ARG_SIZE((*ptr)->size); + bytes += (unsigned)STACK_ARG_SIZE((*ptr)->size); } #endif }