fix ssize_t / ssize_t confusion
This commit is contained in:
parent
f0eb493643
commit
e2c50d07c6
@ -243,12 +243,12 @@ source_fill_input_buffer( j_decompress_ptr cinfo )
|
||||
|
||||
Source *src = (Source *) cinfo->src;
|
||||
|
||||
size_t read;
|
||||
gint64 bytes_read;
|
||||
|
||||
if( (read = vips_source_read( src->source,
|
||||
if( (bytes_read = vips_source_read( src->source,
|
||||
src->buf, SOURCE_BUFFER_SIZE )) > 0 ) {
|
||||
src->pub.next_input_byte = src->buf;
|
||||
src->pub.bytes_in_buffer = read;
|
||||
src->pub.bytes_in_buffer = bytes_read;
|
||||
}
|
||||
else {
|
||||
if( src->jpeg->fail_on >= VIPS_FAIL_ON_TRUNCATED )
|
||||
|
@ -236,12 +236,13 @@ vips_pdfium_GetBlock( void *param,
|
||||
return( FALSE );
|
||||
|
||||
while( size > 0 ) {
|
||||
size_t n_read;
|
||||
gint64 bytes_read;
|
||||
|
||||
if( (n_read = vips_source_read( pdf->source, pBuf, size )) < 0 )
|
||||
if( (bytes_read =
|
||||
vips_source_read( pdf->source, pBuf, size )) < 0 )
|
||||
return( FALSE );
|
||||
pBuf += n_read;
|
||||
size -= n_read;
|
||||
pBuf += bytes_read;
|
||||
size -= bytes_read;
|
||||
}
|
||||
|
||||
return( TRUE );
|
||||
|
@ -270,10 +270,10 @@ vips_sbuf_require( VipsSbuf *sbuf, int require )
|
||||
int space_available =
|
||||
VIPS_SBUF_BUFFER_SIZE -
|
||||
sbuf->chars_in_buffer;
|
||||
size_t bytes_read;
|
||||
gint64 bytes_read;
|
||||
|
||||
if( (bytes_read = vips_source_read( sbuf->source,
|
||||
to, space_available )) == -1 )
|
||||
to, space_available )) < 0 )
|
||||
return( -1 );
|
||||
if( bytes_read == 0 ) {
|
||||
vips_error(
|
||||
|
Loading…
Reference in New Issue
Block a user