small oopes

thank you clang
This commit is contained in:
John Cupitt 2014-05-18 11:25:08 +01:00
parent be6503e47a
commit dea1487ed5
3 changed files with 9 additions and 5 deletions

View File

@ -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.
*/

View File

@ -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.
*/

View File

@ -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 );