From e728a99f33df750383c4813f63a1ef3e1359501d Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <matthieu.schaller@durham.ac.uk> Date: Wed, 15 Feb 2017 10:54:13 +0000 Subject: [PATCH] Removed unnecessary cast from 'long long' to 'long long' --- src/parallel_io.c | 4 ++-- src/serial_io.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/parallel_io.c b/src/parallel_io.c index 0f7cc86433..7696e7ac5b 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 97b1a5f0c3..527e294988 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]; -- GitLab