Skip to content

Commit

Permalink
Resolve int-to-ptr warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Whitlock committed Sep 26, 2024
1 parent cb4dc6b commit 5975281
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/failed_spares/fenix_failed_spares.c
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const int kKillID = 1;

void* exitThread(void* should_exit){
sleep(1);
if( ((int)should_exit) == 1){
if( ((intptr_t)should_exit) == 1){
pid_t pid = getpid();
kill(pid, SIGTERM);
}
Expand All @@ -92,7 +92,7 @@ int main(int argc, char **argv) {
MPI_Comm_size(world_comm, &old_world_size);
MPI_Comm_rank(world_comm, &old_rank);

int should_cancel = 0;
intptr_t should_cancel = 0;
for(int i = 2; i < argc; i++){
if(atoi(argv[i]) == old_rank) should_cancel = 1;
}
Expand Down

0 comments on commit 5975281

Please sign in to comment.