From 27a67310a266e498e7d1970ab8340e35880de7d4 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Tue, 7 Sep 2021 16:28:36 +0200 Subject: check_box: Fix type used for sizeof --- libcrystfel/src/integration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libcrystfel/src/integration.c') diff --git a/libcrystfel/src/integration.c b/libcrystfel/src/integration.c index 24b827ef..04524274 100644 --- a/libcrystfel/src/integration.c +++ b/libcrystfel/src/integration.c @@ -826,7 +826,7 @@ static int check_box(struct intcontext *ic, struct peak_box *bx, int *sat) if ( sat != NULL ) *sat = 0; - bx->bm = malloc(ic->w*ic->w*sizeof(int)); + bx->bm = malloc(ic->w*ic->w*sizeof(enum boxmask_val)); if ( bx->bm == NULL ) { ERROR("Failed to allocate box mask\n"); return 1; -- cgit v1.2.3