aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-04-26 19:31:29 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:24 +0100
commitc7b2d46aee6d33d874c846408627144963999f61 (patch)
treed69ddd7f2bc9462d39226efe65bbdf54c441100f /src/post-refinement.c
parent7b5d724ef01583ab2542242c887e4863bda4d9cd (diff)
Convention
Diffstat (limited to 'src/post-refinement.c')
-rw-r--r--src/post-refinement.c4
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;