From 5975281b232284a9b463a57f819b92d0afa5cfda Mon Sep 17 00:00:00 2001 From: Matthew Whitlock Date: Thu, 26 Sep 2024 11:17:49 -0700 Subject: [PATCH] Resolve int-to-ptr warnings --- test/failed_spares/fenix_failed_spares.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/failed_spares/fenix_failed_spares.c b/test/failed_spares/fenix_failed_spares.c index 02d18a4..bea1dd7 100644 --- a/test/failed_spares/fenix_failed_spares.c +++ b/test/failed_spares/fenix_failed_spares.c @@ -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); } @@ -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; }