Commit 46fc74d6 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit narrowing conversions in stream_cgribex.

parent 74fb8362
......@@ -2223,8 +2223,9 @@ size_t cgribexEncode(int memtype, int varID, int levelID, int vlistID, int gridI
if ( memtype == MEMTYPE_FLOAT )
{
for ( int i = 0; i < ISEC2_NumVCP; ++i ) fsec2f[10+i] = fsec2[10+i];
fsec3f[ 1] = fsec3[ 1];
size_t numVCP = ISEC2_NumVCP > 0 ? (size_t)ISEC2_NumVCP : (size_t)0;
for ( size_t i = 0; i < numVCP; ++i ) fsec2f[10+i] = (float)fsec2[10+i];
fsec3f[ 1] = (float)fsec3[ 1];
}
if ( memtype == MEMTYPE_FLOAT )
......
Markdown is supported
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