[Python-checkins] r43028 - python/trunk/Modules/_ctypes/cfield.c
thomas.heller
python-checkins at python.org
Tue Mar 14 21:39:27 CET 2006
Author: thomas.heller
Date: Tue Mar 14 21:39:27 2006
New Revision: 43028
Modified:
python/trunk/Modules/_ctypes/cfield.c
Log:
Cast an Py_ssize_t to int, to avoid a compiler warning.
Modified: python/trunk/Modules/_ctypes/cfield.c
==============================================================================
--- python/trunk/Modules/_ctypes/cfield.c (original)
+++ python/trunk/Modules/_ctypes/cfield.c Tue Mar 14 21:39:27 2006
@@ -251,10 +251,10 @@
if (bits)
result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
- name, self->offset, size, bits);
+ name, (int)self->offset, size, bits);
else
result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
- name, self->offset, size);
+ name, (int)self->offset, size);
return result;
}
More information about the Python-checkins
mailing list