mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Make gcc -Wall happy.
This commit is contained in:
parent
562f5b1480
commit
7148ca9d14
1 changed files with 4 additions and 5 deletions
|
@ -82,7 +82,6 @@ _PyBuffer_FromObject(base, offset, size, proc, readonly)
|
||||||
PyBufferProcs *pb = base->ob_type->tp_as_buffer;
|
PyBufferProcs *pb = base->ob_type->tp_as_buffer;
|
||||||
void *p;
|
void *p;
|
||||||
int count;
|
int count;
|
||||||
PyBufferObject *b;
|
|
||||||
|
|
||||||
if ( (*pb->bf_getsegcount)(base, NULL) != 1 )
|
if ( (*pb->bf_getsegcount)(base, NULL) != 1 )
|
||||||
{
|
{
|
||||||
|
@ -221,18 +220,18 @@ buffer_repr(self)
|
||||||
|
|
||||||
if ( self->b_base == NULL )
|
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,
|
status,
|
||||||
self->b_ptr,
|
(long)self->b_ptr,
|
||||||
self->b_size,
|
self->b_size,
|
||||||
(long)self);
|
(long)self);
|
||||||
}
|
}
|
||||||
else
|
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,
|
status,
|
||||||
(long)self->b_base,
|
(long)self->b_base,
|
||||||
self->b_ptr,
|
(long)self->b_ptr,
|
||||||
self->b_size,
|
self->b_size,
|
||||||
(long)self);
|
(long)self);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue