grid_complex encoding: Fix broken tests

This commit is contained in:
Shahram Najm 2023-03-31 09:40:44 +00:00
parent 9261afb04e
commit f4ded028af
1 changed files with 1 additions and 1 deletions

View File

@ -1796,7 +1796,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
if ((err = grib_set_long_internal(gh, self->orderOfSpatialDifferencing, 2)) != GRIB_SUCCESS)
return err;
}
if (packing_mode != 1) {
if (packing_mode > 1) {
if ((err = grib_set_long_internal(gh, self->numberOfOctetsExtraDescriptors, sec5_48)) != GRIB_SUCCESS)
return err;
}