From 7e5536832b22036a634a74e16073b4762a416e29 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Wed, 21 Jul 2021 13:26:37 +0200 Subject: Reduce variable scope where possible --- libcrystfel/src/integration.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libcrystfel/src/integration.c') diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index 2375388f..e797d26b 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -340,10 +340,9 @@ static void fit_gradient_bg(struct intcontext *ic, struct peak_box *bx) for ( p=0; pw; p++ ) { for ( q=0; qw; q++ ) { - double bi; - if ( bx->bm[p + ic->w*q] == BM_BG ) { + double bi; bi = boxi(ic, bx, p, q); addv(v, 0, bi*p); -- cgit v1.2.3