Fix py_bufr_ecc-869.py test

This commit is contained in:
Eugen Betke 2024-05-07 10:03:49 +00:00
parent ea6fca236e
commit 7ddc88a430
2 changed files with 5 additions and 3 deletions

View File

@ -2066,7 +2066,8 @@ int is_bitmap_start_descriptor(grib_accessors_list* al, int* err){
acode = al->accessor->get_attribute("code");
if (acode)
*err = acode->unpack_long(code, &l); else
*err = acode->unpack_long(code, &l);
else
return 1;
switch (code[0]) {
@ -2081,7 +2082,8 @@ int is_bitmap_start_descriptor(grib_accessors_list* al, int* err){
{
//long index[1];
//grib_accessor* anindex=grib_accessor_get_attribute(al->accessor,"index");
//anindex->unpack_long(index,&l); return 1;
//anindex->unpack_long(index,&l);
return 1;
}
}
return 0;

View File

@ -542,7 +542,7 @@ int grib_accessor_class_gen_t::pack_double(grib_accessor* a, const double* v, si
is_overridden_[PACK_DOUBLE] = 0;
grib_context* c = a->context;
if (strcmp(a->cclass->name, "codetable") == 0 || is_overridden_[PACK_LONG]) {
if (is_overridden_[PACK_LONG] || strcmp(a->cclass->name, "codetable") == 0) {
/* ECC-648: Special case of codetable */
return pack_double_array_as_long(a, v, len);
}