Skip to content

Commit

Permalink
Fix C++ compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
sbird committed Oct 15, 2024
1 parent 20a3155 commit 77b4618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libgadget/treewalk.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ treewalk_build_queue(TreeWalk * tw, int * active_set, const size_t size, int may
/* Explicitly deal with the case where the queue is zero and there is nothing to do.
* Some OpenMP compilers (nvcc) seem to still execute the below loop in that case*/
if(size == 0) {
tw->WorkSet = mymalloc("ActiveQueue", sizeof(int));
tw->WorkSet = (int *) mymalloc("ActiveQueue", sizeof(int));
tw->WorkSetSize = size;
return;
}
Expand Down

0 comments on commit 77b4618

Please sign in to comment.