Commit 37bc2e82 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

grib1/ecCodes: set maxStep to 65000 (bug fix).

parent 584cabb1
......@@ -4,6 +4,10 @@
* using EXSE library version 1.4.1
* Version 1.9.6 released
2018-11-19 Uwe Schulzweida
* grib1/ecCodes: set maxStep to 65000 (bug fix)
2018-11-16 Uwe Schulzweida
* grib2: Added support for variables with different perturbationNumber
......
......@@ -1902,12 +1902,12 @@ int gribapiDefDateTimeRel(int editionNumber, grib_handle *gh, int64_t rdate, int
if ( !(int)(fmod(days*86400.0 + secs, factor)))
{
int proDefTempNum = gribapiDefSteptype(editionNumber, gh, productDefinitionTemplate, typeOfGeneratingProcess, tsteptype, gcinit);
gribapiDefStepUnits(editionNumber, gh, timeunit, proDefTempNum, gcinit);
long startStep = 0;
double endStepF = (days*86400.0 + secs)/factor;
if ( endStepF > INT_MAX ) return status;
long maxStep = (editionNumber > 1) ? INT_MAX : 65000;
if (endStepF > maxStep) return status;
long endStep = (long) endStepF;
if ( editionNumber > 1 ) GRIB_CHECK(my_grib_set_long(gh, "significanceOfReferenceTime", 1), 0);
......
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