From cd47f8c285511240baaef7483392e880220b0f8d Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Wed, 13 Oct 2021 13:04:02 +0100 Subject: [PATCH] BUFR: Fix assert --- src/grib_accessor_class_bufr_data_array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/grib_accessor_class_bufr_data_array.c b/src/grib_accessor_class_bufr_data_array.c index 21feeac77..58a68ed55 100644 --- a/src/grib_accessor_class_bufr_data_array.c +++ b/src/grib_accessor_class_bufr_data_array.c @@ -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;