mirror of
https://github.com/Unidata/netcdf-c.git
synced 2025-02-17 16:50:18 +08:00
Fix an accidentally-introduced bug.
This commit is contained in:
parent
30621b38d3
commit
4aeafe2d3a
@ -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];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user