move pipe read limit to gint64

We had a mix of size_t and gint64. Just use gint64 everywhere.
This commit is contained in:
John Cupitt 2020-02-05 14:42:03 +00:00
parent 862e1ae214
commit f866799474
3 changed files with 4 additions and 4 deletions

View File

@ -89,7 +89,7 @@ GType vips_connection_get_type( void );
const char *vips_connection_filename( VipsConnection *connection );
const char *vips_connection_nick( VipsConnection *connection );
void vips_pipe_read_limit_set( size_t limit );
void vips_pipe_read_limit_set( gint64 limit );
#define VIPS_TYPE_SOURCE (vips_source_get_type())
#define VIPS_SOURCE( obj ) \

View File

@ -441,7 +441,7 @@ vips_init( const char *argv0 )
vips_cache_set_trace( TRUE );
if( g_getenv( "VIPS_PIPE_READ_LIMIT" ) )
vips_pipe_read_limit =
g_ascii_strtoull( g_getenv( "VIPS_PIPE_READ_LIMIT" ),
g_ascii_strtoll( g_getenv( "VIPS_PIPE_READ_LIMIT" ),
NULL, 10 );
vips_pipe_read_limit_set( vips_pipe_read_limit );

View File

@ -92,7 +92,7 @@
*
* This can be configured with vips_pipe_read_limit_set().
*/
static size_t vips__pipe_read_limit = 1024 * 1024 * 1024;
static gint64 vips__pipe_read_limit = 1024 * 1024 * 1024;
/**
* vips_pipe_read_limit_set:
@ -112,7 +112,7 @@ static size_t vips__pipe_read_limit = 1024 * 1024 * 1024;
* `VIPS_PIPE_READ_LIMIT`.
*/
void
vips_pipe_read_limit_set( size_t limit )
vips_pipe_read_limit_set( gint64 limit )
{
vips__pipe_read_limit = limit;
}