BUFR: Fix assert

This commit is contained in:
Shahram Najm 2021-10-13 13:04:02 +01:00
parent 11053e8274
commit cd47f8c285
1 changed files with 1 additions and 1 deletions

View File

@ -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;