From 9ed0d8a44a4448c69967246c2844272dcb47290f Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 6 Oct 2016 11:56:21 +0200 Subject: pattern_sim: Fix loop bounds in record_image() --- libcrystfel/src/detector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcrystfel') diff --git a/libcrystfel/src/detector.c b/libcrystfel/src/detector.c index 268fe77f..42ffbe40 100644 --- a/libcrystfel/src/detector.c +++ b/libcrystfel/src/detector.c @@ -376,8 +376,8 @@ static void record_panel(struct panel *p, float *dp, int do_poisson, { int fs, ss; - for ( ss=0; ss>p->h; ss++ ) { - for ( fs=0; fs>p->w; fs++ ) { + for ( ss=0; ssh; ss++ ) { + for ( fs=0; fsw; fs++ ) { double counts; double cf; -- cgit v1.2.3