Commit 4939a3fb authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Change variable name to prevent shadowing.

parent ca16a274
...@@ -1057,7 +1057,7 @@ writeGribStream(size_t streamIdx, ...@@ -1057,7 +1057,7 @@ writeGribStream(size_t streamIdx,
{ {
size_t varIdx = (size_t)-1; size_t varIdx = (size_t)-1;
int varID = -1; int varID = -1;
size_t base = 0; size_t recordDataOfs = 0;
const double *data = *data_; const double *data = *data_;
for (size_t recordIdx = myRecordStart; for (size_t recordIdx = myRecordStart;
recordIdx <= myRecordEnd; recordIdx <= myRecordEnd;
...@@ -1071,9 +1071,9 @@ writeGribStream(size_t streamIdx, ...@@ -1071,9 +1071,9 @@ writeGribStream(size_t streamIdx,
size_t nvals = recordSize / sizeof (double); size_t nvals = recordSize / sizeof (double);
int nmiss int nmiss
= countVarChunkMissingVals(vlistID, varID, mapping, (int)nvals, = countVarChunkMissingVals(vlistID, varID, mapping, (int)nvals,
data + base); data + recordDataOfs);
streamWriteVarSlice(streamID, varID, level, data + base, nmiss); streamWriteVarSlice(streamID, varID, level, data + recordDataOfs, nmiss);
base += nvals; recordDataOfs += nvals;
} }
aggBufFlush(streamIdx, cdiPioFileWrite); aggBufFlush(streamIdx, cdiPioFileWrite);
} }
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment