swap abs() for fabs() in composite

The non-vector fallback path had abs(double). Thanks brcarp.

See https://github.com/libvips/libvips/issues/1572
This commit is contained in:
John Cupitt 2020-03-11 09:08:39 +00:00
parent 03399b4d7e
commit 73c1331439

View File

@ -621,7 +621,7 @@ vips_composite_base_blend( VipsCompositeBase *composite,
case VIPS_BLEND_MODE_DIFFERENCE:
for( int b = 0; b < bands; b++ )
f[b] = abs( B[b] - A[b] );
f[b] = fabs( B[b] - A[b] );
break;
case VIPS_BLEND_MODE_EXCLUSION: