Skip to content
Snippets Groups Projects
Commit 3b7cf867 authored by Thomas Jahns's avatar Thomas Jahns :cartwheel:
Browse files

Use same type as RHS of expression.

parent ec59d44f
No related branches found
No related tags found
2 merge requests!91Add alternative code path for huge buffers.,!89Miscellaneous fixes and CDI-PIO improvements
......@@ -975,7 +975,7 @@ cdfReadVarSliceDPPart(stream_t *streamptr, int varID, int levelID, int varType,
int gridId = vlistInqVarGrid(vlistID, varID);
SizeType gridsize = gridInqSize(gridId);
unsigned int position = 0;
int position = 0;
for (int i = 0; i < MAX_DIMENSIONS; ++i)
if (count[i] == (size_t)gridsize) position = i;
......@@ -1006,7 +1006,7 @@ cdfReadVarSliceSPPart(stream_t *streamptr, int varID, int levelID, int varType,
int gridId = vlistInqVarGrid(vlistID, varID);
SizeType gridsize = gridInqSize(gridId);
unsigned int position = 0;
int position = 0;
for (int i = 0; i < MAX_DIMENSIONS; ++i)
if (count[i] == (size_t)gridsize) position = i;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment