8000 Cleanup clang warnings by jenshnielsen · Pull Request #6052 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Cleanup clang warnings #6052

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 14, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files. Retry
Loading
Diff view
Diff view
Next Next commit
Fix clang warning by using fabs to compare floats
  • Loading branch information
jenshnielsen committed Mar 7, 2016
commit 941406e545c95ac167b899dcc815be490e09cd6a
4 changes: 2 additions & 2 deletions src/_image_resample.h
Original file line number Diff line number Diff line change
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