oops, fabs()/abs() mixup

This commit is contained in:
John Cupitt 2015-05-31 18:10:34 +01:00
parent 2f4c0da6eb
commit 8c5ef3812e

View File

@ -129,7 +129,7 @@ vips_buildlut_build_init( VipsBuildlut *lut )
/* Allow for being a bit off. /* Allow for being a bit off.
*/ */
if( abs( v - VIPS_RINT( v ) ) > 0.001 ) { if( fabs( v - VIPS_RINT( v ) ) > 0.001 ) {
vips_error( class->nickname, vips_error( class->nickname,
_( "x value row %d not an int" ), y ); _( "x value row %d not an int" ), y );
return( -1 ); return( -1 );