aboutsummaryrefslogtreecommitdiff
path: root/libcrystfel/src/integration.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2021-09-07 16:28:36 +0200
committerThomas White <taw@physics.org>2021-09-07 16:28:36 +0200
commit27a67310a266e498e7d1970ab8340e35880de7d4 (patch)
tree2122e1a7b3030cc8a364002c51329c1c0d1c9e1d /libcrystfel/src/integration.c
parent8163eac969a895511a55f6fdd7554b4ad90bcfe7 (diff)
check_box: Fix type used for sizeof
Diffstat (limited to 'libcrystfel/src/integration.c')
-rw-r--r--libcrystfel/src/integration.c2
1 files changed, 1 insertions, 1 deletions
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;