summaryrefslogtreecommitdiffstats
path: root/Objects/bufferobject.c
diff options
context:
space:
mode:
authorMartin v. Löwis <martin@v.loewis.de>2006-02-16 06:54:25 (GMT)
committerMartin v. Löwis <martin@v.loewis.de>2006-02-16 06:54:25 (GMT)
commit2c95cc6d72957296c46bb11362359675a47e2085 (patch)
tree9e6e78432b2aef86240297833b644d4d60d771a7 /Objects/bufferobject.c
parent26efe402c2a5dba441dc2feae2f15fea6be452ba (diff)
downloadcpython-2c95cc6d72957296c46bb11362359675a47e2085.zip
cpython-2c95cc6d72957296c46bb11362359675a47e2085.tar.gz
cpython-2c95cc6d72957296c46bb11362359675a47e2085.tar.bz2
Support %zd in PyErr_Format and PyString_FromFormat.
Diffstat (limited to 'Objects/bufferobject.c')
-rw-r--r--Objects/bufferobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c
index a21d0b1..73f361e 100644
--- a/Objects/bufferobject.c
+++ b/Objects/bufferobject.c
@@ -243,14 +243,14 @@ buffer_repr(PyBufferObject *self)
const char *status = self->b_readonly ? "read-only" : "read-write";
if ( self->b_base == NULL )
- return PyString_FromFormat("<%s buffer ptr %p, size %ld at %p>",
+ return PyString_FromFormat("<%s buffer ptr %p, size %zd at %p>",
status,
self->b_ptr,
(long)self->b_size,
self);
else
return PyString_FromFormat(
- "<%s buffer for %p, size %ld, offset %ld at %p>",
+ "<%s buffer for %p, size %zd, offset %zd at %p>",
status,
self->b_base,
(long)self->b_size,