aboutsummaryrefslogtreecommitdiff
path: root/src/post-refinement.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-05-02 16:24:25 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:25 +0100
commitd541875f60a47acedca42163f04c7ed88c17234b (patch)
treef24f954519d08271b56d19141b75b723f9312b2b /src/post-refinement.c
parent31851dfe017e89ebcf00c89ea4c3a0f12f7e86a6 (diff)
More 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 1fd4d13b..db8d4990 100644
--- a/src/post-refinement.c
+++ b/src/post-refinement.c
@@ -132,10 +132,10 @@ static double gradient(struct image *image, int k, Reflection *refl, double r)
return (nom/den) * g;
case REF_R :
- if ( !clamp_low ) {
+ if ( clamp_low == 0 ) {
g += partiality_rgradient(r1, r);
}
- if ( !clamp_high ) {
+ if ( clamp_high == 0 ) {
g += partiality_rgradient(r2, r);
}
return g;