summaryrefslogtreecommitdiffstats
path: root/Modules/_ctypes
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2006-03-15 09:17:20 (GMT)
committerTim Peters <tim.peters@gmail.com>2006-03-15 09:17:20 (GMT)
commit8ea61f1a83985e38627318d19ec7a3febdb5cacd (patch)
treefcb711cfa4ca86ef79a1ff0372a83c9b88fcb5eb /Modules/_ctypes
parentab8aeba51749d5a7beb818804eaf3047207eae5e (diff)
downloadcpython-8ea61f1a83985e38627318d19ec7a3febdb5cacd.zip
cpython-8ea61f1a83985e38627318d19ec7a3febdb5cacd.tar.gz
cpython-8ea61f1a83985e38627318d19ec7a3febdb5cacd.tar.bz2
Revert rev 43041, which introduced the "z" format qualifier
unique to Python 2.5.
Diffstat (limited to 'Modules/_ctypes')
-rw-r--r--Modules/_ctypes/cfield.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c
index 3e759fe..de41571 100644
--- a/Modules/_ctypes/cfield.c
+++ b/Modules/_ctypes/cfield.c
@@ -250,11 +250,11 @@ CField_repr(CFieldObject *self)
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;
}