summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorThomas Heller <theller@ctypes.org>2006-03-14 20:39:27 (GMT)
committerThomas Heller <theller@ctypes.org>2006-03-14 20:39:27 (GMT)
commitab906a562bb0ab4de99e76df16f227386438ace6 (patch)
tree81ecf6e22dfa43676a49e4cd5d9eb664c10597e3 /Modules
parent6ea6e204a9d71705490ad43c7dcb078b18da92ef (diff)
downloadcpython-ab906a562bb0ab4de99e76df16f227386438ace6.zip
cpython-ab906a562bb0ab4de99e76df16f227386438ace6.tar.gz
cpython-ab906a562bb0ab4de99e76df16f227386438ace6.tar.bz2
Cast an Py_ssize_t to int, to avoid a compiler warning.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/_ctypes/cfield.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_ctypes/cfield.c b/Modules/_ctypes/cfield.c
index 0f69d74..de41571 100644
--- a/Modules/_ctypes/cfield.c
+++ b/Modules/_ctypes/cfield.c
@@ -251,10 +251,10 @@ CField_repr(CFieldObject *self)
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;
}