Commit 18b3bd9b authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

added cast to long int

parent e0a812d3
......@@ -46,12 +46,12 @@ int gribapiGetGridType(grib_handle *gh)
switch (gribgridtype)
{
case GRIB2_GTYPE_LATLON: { GRIB_CHECK(grib_get_long(gh, "Ni", &lpar), 0);
if ( lpar == GRIB_MISSING_LONG ) break;
if ( lpar == (long) GRIB_MISSING_LONG ) break;
}
case GRIB2_GTYPE_LATLON_ROT: { gridtype = GRID_LONLAT; break; }
case GRIB2_GTYPE_LCC: { gridtype = GRID_LCC; break; }
case GRIB2_GTYPE_GAUSSIAN: { GRIB_CHECK(grib_get_long(gh, "Ni", &lpar), 0);
if ( lpar == GRIB_MISSING_LONG )
if ( lpar == (long) GRIB_MISSING_LONG )
gridtype = GRID_GAUSSIAN_REDUCED;
else
gridtype = GRID_GAUSSIAN;
......
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