summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2007-11-15 20:03:00 (GMT)
committerThomas Heller <theller@ctypes.org>2007-11-15 20:03:00 (GMT)
commit6e8ea0fd9c46978cf3101bd3ea94022751464ad9 (patch)
tree043905fb276696c2203b66a220a2e4e0ae39ef35 /Modules/_ctypes
parent4d0ebcc7fa6dbb8cfacb480835326178d2638115 (diff)
downloadcpython-6e8ea0fd9c46978cf3101bd3ea94022751464ad9.zip
cpython-6e8ea0fd9c46978cf3101bd3ea94022751464ad9.tar.gz
cpython-6e8ea0fd9c46978cf3101bd3ea94022751464ad9.tar.bz2
Fix two compiler warnings on Win64.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/_ctypes.c2
-rw-r--r--Modules/_ctypes/libffi_msvc/prep_cif.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/_ctypes.c b/Modules/_ctypes/_ctypes.c
index 39dfdef..05a9fca4 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 2650fa0..cd623a1 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
}