Skip to content

Commit

Permalink
Fix clang warning by using fabs to compare floats
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Mar 7, 2016
1 parent 57fa73f commit 941406e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/_image_resample.h
Expand Up @@ -908,8 +908,8 @@ void resample(

if (params.interpolation != NEAREST &&
params.is_affine &&
abs(params.affine.sx) == 1.0 &&
abs(params.affine.sy) == 1.0 &&
fabs(params.affine.sx) == 1.0 &&
fabs(params.affine.sy) == 1.0 &&
params.affine.shx == 0.0 &&
params.affine.shy == 0.0) {
params.interpolation = NEAREST;
Expand Down

0 comments on commit 941406e

Please sign in to comment.