Commit b289b45d authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Fix implicit conversion.

parent 95d7bdc7
...@@ -381,13 +381,13 @@ int cdiGribIterator_levelType(CdiIterator *super, int levelSelector, char **outN ...@@ -381,13 +381,13 @@ int cdiGribIterator_levelType(CdiIterator *super, int levelSelector, char **outN
int zaxisType = ZAXIS_GENERIC; int zaxisType = ZAXIS_GENERIC;
if(gribEditionNumber(me->gribHandle) <= 1) if(gribEditionNumber(me->gribHandle) <= 1)
{ {
int levelType = gribGetLongDefault(me->gribHandle, "indicatorOfTypeOfLevel", 255); int levelType = (int)gribGetLongDefault(me->gribHandle, "indicatorOfTypeOfLevel", 255);
if(levelSelector && !isGrib1DualLevel(levelType)) levelType = 255; if(levelSelector && !isGrib1DualLevel(levelType)) levelType = 255;
zaxisType = grib1ltypeToZaxisType(levelType); zaxisType = grib1ltypeToZaxisType(levelType);
} }
else else
{ {
int levelType = gribGetLongDefault(me->gribHandle, levelSelector ? "typeOfSecondFixedSurface" : "typeOfFirstFixedSurface", 255); int levelType = (int)gribGetLongDefault(me->gribHandle, levelSelector ? "typeOfSecondFixedSurface" : "typeOfFirstFixedSurface", 255);
zaxisType = grib2ltypeToZaxisType(levelType); zaxisType = grib2ltypeToZaxisType(levelType);
} }
......
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