[Python-checkins] r43042 - python/trunk/Modules/_ctypes/cfield.c
tim.peters
python-checkins at python.org
Wed Mar 15 10:17:20 CET 2006
Author: tim.peters
Date: Wed Mar 15 10:17:20 2006
New Revision: 43042
Modified:
python/trunk/Modules/_ctypes/cfield.c
Log:
Revert rev 43041, which introduced the "z" format qualifier
unique to Python 2.5.
Modified: python/trunk/Modules/_ctypes/cfield.c
==============================================================================
--- python/trunk/Modules/_ctypes/cfield.c (original)
+++ python/trunk/Modules/_ctypes/cfield.c Wed Mar 15 10:17:20 2006
@@ -250,11 +250,11 @@
name = ((PyTypeObject *)self->proto)->tp_name;
if (bits)
- result = PyString_FromFormat("<Field type=%s, ofs=%zd:%d, bits=%d>",
- name, self->offset, size, bits);
+ result = PyString_FromFormat("<Field type=%s, ofs=%d:%d, bits=%d>",
+ name, (int)self->offset, size, bits);
else
- result = PyString_FromFormat("<Field type=%s, ofs=%zd, size=%d>",
- name, self->offset, size);
+ result = PyString_FromFormat("<Field type=%s, ofs=%d, size=%d>",
+ name, (int)self->offset, size);
return result;
}
More information about the Python-checkins
mailing list