mirror of https://github.com/ecmwf/eccodes.git
Fix py_bufr_ecc-869.py test
This commit is contained in:
parent
ea6fca236e
commit
7ddc88a430
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue