diff options
author | Thomas White <taw@physics.org> | 2021-09-07 16:48:03 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-09-07 16:48:03 +0200 |
commit | 4cd5687a5be1d46e9e2546609951009744901bac (patch) | |
tree | e4892a7b2bee54d90b38f3d8956ff3d6348fc851 | |
parent | c2e7ca233c0955cc5c326b1a60a548a20dcbd739 (diff) |
ring_check: Fix data type for malloc size
-rw-r--r-- | tests/ring_check.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/ring_check.c b/tests/ring_check.c index f4830068..863802c7 100644 --- a/tests/ring_check.c +++ b/tests/ring_check.c @@ -186,7 +186,7 @@ int main(int argc, char *argv[]) image.dp = malloc(sizeof(float *)); image.dp[0] = malloc(128*128*sizeof(float)); - image.bad = malloc(sizeof(uint16_t *)); + image.bad = malloc(sizeof(int *)); image.bad[0] = calloc(128*128, sizeof(int)); image.lambda = ph_eV_to_lambda(1000.0); |