diff --git a/libvips/freqfilt/fwfft.c b/libvips/freqfilt/fwfft.c index 618f8db2..8d2880d6 100644 --- a/libvips/freqfilt/fwfft.c +++ b/libvips/freqfilt/fwfft.c @@ -117,7 +117,8 @@ rfwfft1( VipsObject *object, VipsImage *in, VipsImage **out ) */ t[1] = vips_image_new_buffer(); if( vips_cast_double( in, &t[0], NULL ) || - vips_image_write( t[0], t[1] ) ); + vips_image_write( t[0], t[1] ) ) + return( -1 ); /* Make the plan for the transform. Yes, they really do use nx for * height and ny for width. Use a separate scratch buffer for the @@ -231,7 +232,8 @@ cfwfft1( VipsObject *object, VipsImage *in, VipsImage **out ) */ t[1] = vips_image_new_buffer(); if( vips_cast_dpcomplex( in, &t[0], NULL ) || - vips_image_write( t[0], t[1] ) ); + vips_image_write( t[0], t[1] ) ) + return( -1 ); /* We have to have a separate buffer for the planner to work on. */ diff --git a/libvips/freqfilt/invfft.c b/libvips/freqfilt/invfft.c index e20e5822..9b87b9d0 100644 --- a/libvips/freqfilt/invfft.c +++ b/libvips/freqfilt/invfft.c @@ -102,7 +102,8 @@ cinvfft1( VipsObject *object, VipsImage *in, VipsImage **out ) */ *out = vips_image_new_buffer(); if( vips_cast_dpcomplex( in, &t[0], NULL ) || - vips_image_write( t[0], *out ) ); + vips_image_write( t[0], *out ) ) + return( -1 ); /* Make the plan for the transform. Yes, they really do use nx for * height and ny for width. @@ -150,7 +151,8 @@ rinvfft1( VipsObject *object, VipsImage *in, VipsImage **out ) */ t[1] = vips_image_new_buffer(); if( vips_cast_dpcomplex( in, &t[0], NULL ) || - vips_image_write( t[0], t[1] ) ); + vips_image_write( t[0], t[1] ) ) + return( -1 ); /* Build half-complex image. */ diff --git a/libvips/iofuncs/object.c b/libvips/iofuncs/object.c index 232e16f2..cf4176eb 100644 --- a/libvips/iofuncs/object.c +++ b/libvips/iofuncs/object.c @@ -1762,7 +1762,7 @@ vips_object_set_argument_from_string( VipsObject *object, return( -1 ); } - if( sscanf( value, "%Ld", &l ) != 1 ) { + if( sscanf( value, "%lld", &l ) != 1 ) { vips_error( class->nickname, _( "'%s' is not an integer" ), value ); return( -1 );