Skip to content

Commit d010777

Browse files
Resolve int-to-ptr warnings
1 parent 1e86879 commit d010777

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/failed_spares/fenix_failed_spares.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const int kKillID = 1;
6666

6767
void* exitThread(void* should_exit){
6868
sleep(1);
69-
if( ((int)should_exit) == 1){
69+
if( ((intptr_t)should_exit) == 1){
7070
pid_t pid = getpid();
7171
kill(pid, SIGTERM);
7272
}
@@ -92,7 +92,7 @@ int main(int argc, char **argv) {
9292
MPI_Comm_size(world_comm, &old_world_size);
9393
MPI_Comm_rank(world_comm, &old_rank);
9494

95-
int should_cancel = 0;
95+
intptr_t should_cancel = 0;
9696
for(int i = 2; i < argc; i++){
9797
if(atoi(argv[i]) == old_rank) should_cancel = 1;
9898
}

0 commit comments

Comments
 (0)