diff options
author | Thomas White <taw@physics.org> | 2016-10-06 11:56:21 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2016-10-06 12:00:34 +0200 |
commit | 9ed0d8a44a4448c69967246c2844272dcb47290f (patch) | |
tree | a0b6d16ef9d70507b021c80126090b9d9371ff25 /libcrystfel | |
parent | 2e659056eb10ae76308eef8a5e4f68f000030d04 (diff) |
pattern_sim: Fix loop bounds in record_image()
Diffstat (limited to 'libcrystfel')
-rw-r--r-- | libcrystfel/src/detector.c | 4 |
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; |