8000 Fix some minor warnings in extensions by QuLogic · Pull Request #7514 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Fix some minor warnings in extensions #7514

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 7 commits into from
Nov 27, 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.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix misleading indentation warnings in Agg code.
  • Loading branch information
QuLogic committed Nov 25, 2016
commit 99f63576e1ee0861537c5b42c7cc6c0a1809ddbc
16 changes: 8 additions & 8 deletions extern/agg24-svn/include/agg_span_gouraud_rgba.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,10 +198,10 @@ namespace agg
vg = g.y();
vb = b.y();
va = a.y();
if(vr < 0) vr = 0; if(vr > lim) vr = lim;
if(vg < 0) vg = 0; if(vg > lim) vg = lim;
if(vb < 0) vb = 0; if(vb > lim) vb = lim;
if(va < 0) va = 0; if(va > lim) va = lim;
if(vr < 0) { vr = 0; }; if(vr > lim) { vr = lim; };
if(vg < 0) { vg = 0; }; if(vg > lim) { vg = lim; };
if(vb < 0) { vb = 0; }; if(vb > lim) { vb = lim; };
if(va < 0) { va = 0; }; if(va > lim) { va = lim; };
span->r = (value_type)vr;
span->g = (value_type)vg;
span->b = (value_type)vb;
Expand Down Expand Up @@ -245,10 +245,10 @@ namespace agg
vg = g.y();
vb = b.y();
va = a.y();
if(vr < 0) vr = 0; if(vr > lim) vr = lim;
if(vg < 0) vg = 0; if(vg > lim) vg = lim;
if(vb < 0) vb = 0; if(vb > lim) vb = lim;
if(va < 0) va = 0; if(va > lim) va = lim;
if(vr < 0) { vr = 0; }; if(vr > lim) { vr = lim; };
if(vg < 0) { vg = 0; }; if(vg > lim) { vg = lim; };
if(vb < 0) { vb = 0; }; if(vb > lim) { vb = lim; };
if(va < 0) { va = 0; }; if(va > lim) { va = lim; };
span->r = (value_type)vr;
span->g = (value_type)vg;
span->b = (value_type)vb;
Expand Down
0