diff options
author | Guido van Rossum <guido@python.org> | 1998-10-07 16:22:12 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-10-07 16:22:12 (GMT) |
commit | 7148ca9d1468fddb47f730525ce758106cdb9646 (patch) | |
tree | 8b071cbecaa6d0863de99aa1e65810a2f8a17dda /Objects | |
parent | 562f5b1480714a78a1981b8b4426f4d1e180a898 (diff) | |
download | cpython-7148ca9d1468fddb47f730525ce758106cdb9646.zip cpython-7148ca9d1468fddb47f730525ce758106cdb9646.tar.gz cpython-7148ca9d1468fddb47f730525ce758106cdb9646.tar.bz2 |
Make gcc -Wall happy.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/bufferobject.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/Objects/bufferobject.c b/Objects/bufferobject.c index b2b7baa..9be1e43 100644 --- a/Objects/bufferobject.c +++ b/Objects/bufferobject.c @@ -82,7 +82,6 @@ _PyBuffer_FromObject(base, offset, size, proc, readonly) PyBufferProcs *pb = base->ob_type->tp_as_buffer; void *p; int count; - PyBufferObject *b; if ( (*pb->bf_getsegcount)(base, NULL) != 1 ) { @@ -221,18 +220,18 @@ buffer_repr(self) if ( self->b_base == NULL ) { - sprintf(buf, "<%s buffer ptr %lx, size %ld at %lx>", + sprintf(buf, "<%s buffer ptr %lx, size %d at %lx>", status, - self->b_ptr, + (long)self->b_ptr, self->b_size, (long)self); } else { - sprintf(buf, "<%s buffer for %lx, ptr %lx, size %ld at %lx>", + sprintf(buf, "<%s buffer for %lx, ptr %lx, size %d at %lx>", status, (long)self->b_base, - self->b_ptr, + (long)self->b_ptr, self->b_size, (long)self); } |