Skip to content

Commit

Permalink
Merge pull request #942 from Cyan4973/coll_calloc
Browse files Browse the repository at this point in the history
proper argument order for `calloc()`
  • Loading branch information
Cyan4973 authored May 14, 2024
2 parents 9f465f1 + 282f39a commit e5ddef6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/collisions/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1100,9 +1100,9 @@ int main(int argc, const char** argv)
time_t const programTBegin = time(NULL);
POOL_ctx* const pt = POOL_create((size_t)nbThreads, 1);
if (!pt) EXIT("not enough memory for threads");
searchCollisions_results* const MTresults = calloc (sizeof(searchCollisions_results), (size_t)nbThreads);
searchCollisions_results* const MTresults = calloc ((size_t)nbThreads, sizeof(searchCollisions_results));
if (!MTresults) EXIT("not enough memory");
searchCollisions_parameters* const MTparams = calloc (sizeof(searchCollisions_parameters), (size_t)nbThreads);
searchCollisions_parameters* const MTparams = calloc ((size_t)nbThreads, sizeof(searchCollisions_parameters));
if (!MTparams) EXIT("not enough memory");

/* distribute jobs */
Expand Down

0 comments on commit e5ddef6

Please sign in to comment.