diff options
author | Thomas White <taw@physics.org> | 2011-04-26 19:31:29 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:24 +0100 |
commit | c7b2d46aee6d33d874c846408627144963999f61 (patch) | |
tree | d69ddd7f2bc9462d39226efe65bbdf54c441100f /src | |
parent | 7b5d724ef01583ab2542242c887e4863bda4d9cd (diff) |
Convention
Diffstat (limited to 'src')
-rw-r--r-- | src/post-refinement.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/post-refinement.c b/src/post-refinement.c index 98bc319d..02744e9e 100644 --- a/src/post-refinement.c +++ b/src/post-refinement.c @@ -133,10 +133,10 @@ static double gradient(struct image *image, int k, Reflection *refl, double r) return (nom/den) * g; case REF_R : - if ( clamp_low == 0 ) { + if ( !clamp_low ) { g += partiality_rgradient(r1, r); } - if ( clamp_high == 0 ) { + if ( !clamp_high ) { g += partiality_rgradient(r2, r); } return g; |