Skip to content

Commit

Permalink
Fix flipped calloc args in hyperslab.c
Browse files Browse the repository at this point in the history
  • Loading branch information
derobins committed Oct 19, 2024
1 parent 3341580 commit 57cc93e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/hyperslab.c
Original file line number Diff line number Diff line change
Expand Up @@ -985,7 +985,7 @@ test_array_fill(size_t lo, size_t hi)
TESTING(s);

/* Initialize */
if (NULL == (dst = (int *)calloc(sizeof(int), ARRAY_FILL_SIZE * hi)))
if (NULL == (dst = (int *)calloc((ARRAY_FILL_SIZE * hi), sizeof(int))))
TEST_ERROR;

/* Setup */
Expand Down

0 comments on commit 57cc93e

Please sign in to comment.