diff options
author | Thomas White <taw@physics.org> | 2011-05-02 16:24:25 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:25 +0100 |
commit | d541875f60a47acedca42163f04c7ed88c17234b (patch) | |
tree | f24f954519d08271b56d19141b75b723f9312b2b | |
parent | 31851dfe017e89ebcf00c89ea4c3a0f12f7e86a6 (diff) |
More convention
-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 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; |