aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2016-10-06 11:56:21 +0200
committerThomas White <taw@physics.org>2016-10-06 12:00:34 +0200
commit9ed0d8a44a4448c69967246c2844272dcb47290f (patch)
treea0b6d16ef9d70507b021c80126090b9d9371ff25 /libcrystfel
parent2e659056eb10ae76308eef8a5e4f68f000030d04 (diff)
pattern_sim: Fix loop bounds in record_image()
Diffstat (limited to 'libcrystfel')
-rw-r--r--libcrystfel/src/detector.c4
1 files changed, 2 insertions, 2 deletions
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; ss<p->h; ss++ ) {
+ for ( fs=0; fs<p->w; fs++ ) {
double counts;
double cf;