diff options
author | Thomas White <taw@physics.org> | 2011-05-05 10:06:02 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2012-02-22 15:27:25 +0100 |
commit | 9275cd4740a3b71c33f3964998209dd07d93b26c (patch) | |
tree | 849f48d30c181a1cf5b836fc0d3457e953b30f1b /src/geometry.c | |
parent | 00f887f273cd376ae10aa80f860e0c477e389fda (diff) |
Add an assert()
Diffstat (limited to 'src/geometry.c')
-rw-r--r-- | src/geometry.c | 1 |
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). */ |