From 9275cd4740a3b71c33f3964998209dd07d93b26c Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 5 May 2011 10:06:02 +0200 Subject: Add an assert() --- src/geometry.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/geometry.c') 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). */ -- cgit v1.2.3