diff --git a/src/parallel_io.c b/src/parallel_io.c index 0f7cc8643347c998332bc0aa9666cd6ce1965af0..7696e7ac5b22188c9d916a96400940a1c9f7bfad 100644 --- a/src/parallel_io.c +++ b/src/parallel_io.c @@ -434,8 +434,8 @@ void read_ic_parallel(char* fileName, const struct UnitSystem* internal_units, readAttribute(h_grp, "NumPart_Total_HighWord", LONGLONG, numParticles_highWord); for (int ptype = 0; ptype < NUM_PARTICLE_TYPES; ++ptype) - N_total[ptype] = ((long long)numParticles[ptype]) + - ((long long)numParticles_highWord[ptype] << 32); + N_total[ptype] = (numParticles[ptype]) + + (numParticles_highWord[ptype] << 32); dim[0] = boxSize[0]; dim[1] = (boxSize[1] < 0) ? boxSize[0] : boxSize[1]; diff --git a/src/serial_io.c b/src/serial_io.c index 97b1a5f0c30b0826169152c547c86ce394fbe987..527e294988873b01578681f82147d0161c27c777 100644 --- a/src/serial_io.c +++ b/src/serial_io.c @@ -486,8 +486,8 @@ void read_ic_serial(char* fileName, const struct UnitSystem* internal_units, readAttribute(h_grp, "NumPart_Total_HighWord", LONGLONG, numParticles_highWord); for (int ptype = 0; ptype < NUM_PARTICLE_TYPES; ++ptype) - N_total[ptype] = ((long long)numParticles[ptype]) + - ((long long)numParticles_highWord[ptype] << 32); + N_total[ptype] = (numParticles[ptype]) + + (numParticles_highWord[ptype] << 32); dim[0] = boxSize[0]; dim[1] = (boxSize[1] < 0) ? boxSize[0] : boxSize[1];