Skip to content

Commit

Permalink
swap abs() for fabs() in composite
Browse files Browse the repository at this point in the history
The non-vector fallback path had abs(double). Thanks brcarp.

See #1572
  • Loading branch information
jcupitt committed Mar 11, 2020
1 parent 03399b4 commit 73c1331
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libvips/conversion/composite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 73c1331

Please sign in to comment.