Skip to content

Commit

Permalink
unsigned corrected to long unsigned
Browse files Browse the repository at this point in the history
  • Loading branch information
janhclem committed Feb 27, 2025
1 parent 0f5e450 commit 9d842b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mptrac.c
Original file line number Diff line number Diff line change
Expand Up @@ -12403,7 +12403,7 @@ void dd_communicate_particles_cleo(

for (int iq=1; iq < 8 ; iq++) {
if (iq==4 || iq==7) {
printf("q[%d]: %u, target_rank: %d\n",iq, (unsigned int)(*particles[ip_ap].q[iq])
printf("q[%d]: %lu, target_rank: %d\n",iq, (long unsigned int)(*particles[ip_ap].q[iq])
, target_ranks[ip_ap]);
} else {
printf("q[%d]: %f, target_rank: %d\n",iq, *particles[ip_ap].q[iq]
Expand Down Expand Up @@ -12535,7 +12535,7 @@ void dd_communicate_particles_cleo(

int ip_ap_rec = 0;
for (int ip = 0; ip < nparticles; ip++) {
if ((int) (*particles[ip].q[7]) != 26) {
if ((long unsigned int) (*particles[ip].q[7]) != 26) {
ip_ap_rec = ip;
break;
}
Expand All @@ -12550,7 +12550,7 @@ void dd_communicate_particles_cleo(

for (int iq=1; iq < 8 ; iq++) {
if (iq==4 || iq==7) {
printf("q[%d]: %u, target_rank: %d\n",iq, (unsigned int)(*particles[ip_ap_rec].q[iq])
printf("q[%d]: %lu, target_rank: %d\n",iq, (long unsigned int)(*particles[ip_ap_rec].q[iq])
, target_ranks[ip_ap_rec]);
} else {
printf("q[%d]: %f, target_rank: %d\n",iq, *particles[ip_ap_rec].q[iq]
Expand Down

0 comments on commit 9d842b6

Please sign in to comment.