Fix an accidentally-introduced bug.

This commit is contained in:
Ward Fisher 2021-07-13 12:07:56 -06:00
parent 30621b38d3
commit 4aeafe2d3a

View File

@ -1060,7 +1060,7 @@ ifdef(`PNETCDF',`dnl
IF (err != 0) error("error in toMixedBase");
nels = 1;
for (j = 0; j < var_rank[i] && j < MAX_RANK; j++) {
count[j] = (1 + (edge[j] - index[j] - 1)) / ( (IntType)stride[j] == 0 ? 1 : (IntType)stride[j]);
count[j] = 1 + (edge[j] - index[j] - 1) / ( (IntType)stride[j] == 0 ? 1 : (IntType)stride[j]);
nels *= count[j];
index[j] += start[j];
}