mirror of https://github.com/ecmwf/eccodes.git
BUFR: Fix assert
This commit is contained in:
parent
11053e8274
commit
cd47f8c285
|
@ -767,7 +767,7 @@ static int descriptor_get_min_max(bufr_descriptor* bd, long width, long referenc
|
|||
{
|
||||
/* Maximum value is allowed to be the largest number (all bits 1) which means it's MISSING */
|
||||
unsigned long max1 = (1UL << width) - 1; /* Highest value for number with 'width' bits */
|
||||
DebugAssert(width > 0 && width <= 32);
|
||||
DebugAssert(width > 0 && width < 64);
|
||||
|
||||
*maxAllowed = (max1 + reference) * factor;
|
||||
*minAllowed = reference * factor;
|
||||
|
|
Loading…
Reference in New Issue