Merge branch 'feature/CCSDS_constant_fields' into develop

This commit is contained in:
Shahram Najm 2022-05-09 16:25:50 +01:00
commit 6fad5161a8
1 changed files with 3 additions and 0 deletions

View File

@ -401,6 +401,9 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
if ((err = grib_set_long_internal(hand, self->number_of_values, n_vals)) != GRIB_SUCCESS)
return err;
bits_per_value = 0;
if ((err = grib_set_long_internal(hand, self->bits_per_value, bits_per_value)) != GRIB_SUCCESS)
return err;
grib_buffer_replace(a, NULL, 0, 1, 1);