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
}
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins