mirror of https://github.com/ecmwf/eccodes.git
CCSDS packing: add test for different orders
This commit is contained in:
parent
52c06dae7f
commit
a27618253e
|
@ -330,7 +330,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
|
|||
unsigned char* buf = NULL;
|
||||
unsigned char* encoded = NULL;
|
||||
size_t n_vals = 0;
|
||||
long nn = 0;
|
||||
//long nn = 0;
|
||||
|
||||
long binary_scale_factor = 0;
|
||||
long decimal_scale_factor = 0;
|
||||
|
@ -350,9 +350,10 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len)
|
|||
|
||||
self->dirty = 1;
|
||||
|
||||
if ((err = grib_value_count(a, &nn)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
n_vals = nn;
|
||||
//if ((err = grib_value_count(a, &nn)) != GRIB_SUCCESS)
|
||||
// return err;
|
||||
//n_vals = nn;
|
||||
n_vals = *len;
|
||||
|
||||
if ((err = grib_get_long_internal(hand, self->bits_per_value, &bits_per_value)) != GRIB_SUCCESS)
|
||||
return err;
|
||||
|
|
|
@ -35,6 +35,7 @@ list(APPEND test_bins
|
|||
grib_sh_ieee64
|
||||
ieee
|
||||
grib_set_bytes
|
||||
grib_packing_order
|
||||
grib_sh_imag
|
||||
grib_sh_spectral_complex
|
||||
grib_lam_bf
|
||||
|
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue