Skip to content

Commit

Permalink
Merge pull request ESMCI#1584 from jedwards4b/fix_integer_overflow
Browse files Browse the repository at this point in the history
fix an integer overflow issue reported on summit
  • Loading branch information
jedwards4b authored Aug 15, 2019
2 parents 7b2114e + 064e01a commit 009fe0f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/clib/pio_rearrange.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ idx_to_dim_list(int ndims, const int *gdimlen, PIO_Offset idx,
/* Easiest to start from the right and move left. */
for (int i = ndims - 1; i >= 0; --i)
{
int next_idx;
PIO_Offset next_idx;

/* This way of doing div/mod is slightly faster than using "/"
* and "%". */
Expand Down

0 comments on commit 009fe0f

Please sign in to comment.