Skip to content

Commit 24fbf14

Browse files
committed
warning: implicit conversion loses integer precision
1 parent 34377a1 commit 24fbf14

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/read_decomp.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ int read_decomp (e3sm_io_config *cfg, e3sm_io_decom *decom) {
179179
CHECK_ERR
180180
err = driver->inq_dimlen (ncid, dimids[0], &mpi_decomp_nprocs);
181181
CHECK_ERR
182-
decomp_nprocs = (size_t)mpi_decomp_nprocs;
182+
decomp_nprocs = (int)mpi_decomp_nprocs;
183183

184184
/* decomp_nprocs is the number of processes used to generate the E3SM data
185185
* decomposition. nprocs is the number of processes running this benchmark.
@@ -299,7 +299,7 @@ int read_decomp (e3sm_io_config *cfg, e3sm_io_decom *decom) {
299299
/* calculate number of requests for this process */
300300
count = 0;
301301
for (; i < proc_start + proc_count; i++) count += all_nreqs[i];
302-
nreqs = count;
302+
nreqs = (int)count;
303303
free (all_nreqs);
304304

305305
if (cfg->verbose)

0 commit comments

Comments
 (0)