diff options
Diffstat (limited to 'Objects/bufferobject.c')
-rw-r--r-- | Objects/bufferobject.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index 4a9e3ae..a21d0b1 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -246,15 +246,15 @@ buffer_repr(PyBufferObject *self) return PyString_FromFormat("<%s buffer ptr %p, size %ld at %p>", status, self->b_ptr, - self->b_size, + (long)self->b_size, self); else return PyString_FromFormat( "<%s buffer for %p, size %ld, offset %ld at %p>", status, self->b_base, - self->b_size, - self->b_offset, + (long)self->b_size, + (long)self->b_offset, self); } |