aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2011-05-05 10:06:02 +0200
committerThomas White <taw@physics.org>2012-02-22 15:27:25 +0100
commit9275cd4740a3b71c33f3964998209dd07d93b26c (patch)
tree849f48d30c181a1cf5b836fc0d3457e953b30f1b
parent00f887f273cd376ae10aa80f860e0c477e389fda (diff)
Add an assert()
-rw-r--r--src/geometry.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/geometry.c b/src/geometry.c
index 270db457..07c49ecc 100644
--- a/src/geometry.c
+++ b/src/geometry.c
@@ -204,6 +204,7 @@ static int check_reflection(struct image *image, double mres, int output,
rhigh = +image->profile_radius;
clamp_high = +1;
}
+ assert(clamp_low <= clamp_high);
/* The six possible combinations of clamp_{low,high} (including
* zero) correspond to the six situations in Table 3 of Rossmann
* et al. (1979). */