Commit 80ba8063 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit conversions in fallback iterator.

parent 1b735d01
......@@ -271,7 +271,7 @@ void cdiFallbackIterator_readField(CdiIterator* super, double* buffer, size_t* n
CdiFallbackIterator* me = (CdiFallbackIterator*)super;
int missingValues = 0;
streamReadVarSlice(me->streamId, me->curVariable, me->curLevel, buffer, &missingValues);
if(nmiss) *nmiss = missingValues;
if(nmiss) *nmiss = (size_t)missingValues;
}
void cdiFallbackIterator_readFieldF(CdiIterator* super, float* buffer, size_t* nmiss)
......@@ -279,7 +279,7 @@ void cdiFallbackIterator_readFieldF(CdiIterator* super, float* buffer, size_t* n
CdiFallbackIterator* me = (CdiFallbackIterator*)super;
int missingValues = 0;
streamReadVarSliceF(me->streamId, me->curVariable, me->curLevel, buffer, &missingValues);
if(nmiss) *nmiss = missingValues;
if(nmiss) *nmiss = (size_t)missingValues;
}
void cdiFallbackIterator_delete(CdiIterator* super)
......
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