tiny typos

This commit is contained in:
John Cupitt 2016-10-04 15:58:03 +01:00
parent dff0960e5f
commit ee0499af1f
2 changed files with 1 additions and 2 deletions

View File

@ -63,7 +63,6 @@ G_DEFINE_TYPE( VipsConv, vips_conv, VIPS_TYPE_CONVOLUTION );
static int
vips_conv_build( VipsObject *object )
{
VipsObjectClass *class = VIPS_OBJECT_GET_CLASS( object );
VipsConvolution *convolution = (VipsConvolution *) object;
VipsConv *conv = (VipsConv *) object;
VipsImage **t = (VipsImage **) vips_object_local_array( object, 4 );

View File

@ -742,7 +742,7 @@ vips_conva_decompose_boxes( VipsConva *conva )
*/
sum = 0;
for( z = 0; z < size; z++ )
sum += abs( coeff[z] );
sum += fabs( coeff[z] );
conva->divisor = VIPS_RINT( area * scale / sum );
conva->rounding = (conva->divisor + 1) / 2;