Commit 7d86ccce authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

gribapiDefDateTimeRel: check range of startStep and endStep only for editionNumber 1.

parent 9d9d5c24
......@@ -3,6 +3,10 @@
* using CGRIBEX library version 1.9.5
* Version 1.9.10 released
2021-01-22 Uwe Schulzweida
* gribapiDefDateTimeRel: check range of startStep and endStep only for editionNumber 1
2021-01-07 Uwe Schulzweida
* gridDefParamRLL: set x/y units to degrees
......
......@@ -1819,7 +1819,9 @@ int gribapiDefDateTimeRel(int editionNumber, grib_handle *gh, int64_t fdate, int
proDefTempNum == 55 || proDefTempNum == 40055 ) // Tile
startStep = endStep;
if (endStep < startStep || startStep > 255 || endStep > 255)
if (endStep < startStep) return status;
if ( editionNumber == 1 && (startStep > 255 || endStep > 255) )
{
startStep = 0;
endStep = 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