mirror of https://github.com/ecmwf/eccodes.git
BUFR: add debug aid for bitmaps
This commit is contained in:
parent
77b44ff38c
commit
9f61e2be70
|
@ -2075,11 +2075,13 @@ static int bitmap_init(grib_context* c, bitmap_s* bitmap,
|
|||
}
|
||||
bitmap->referredElement=bitmapStart;
|
||||
while (bitmap_ref_skip(bitmap->referredElement,&ret)) bitmap->referredElement=bitmap->referredElement->prev;
|
||||
/*printf("bitmap_init: bitmapSize=%d\n", bitmapSize);*/
|
||||
for (i=1;i<bitmapSize;i++) {
|
||||
if (bitmap->referredElement==NULL) {
|
||||
grib_context_log(c, GRIB_LOG_ERROR,"bitmap_init: bitmap->referredElement==NULL");
|
||||
return GRIB_INTERNAL_ERROR;
|
||||
}
|
||||
/*printf(" bitmap_init: i=%d |%s|\n", i,bitmap->referredElement->accessor->name);*/
|
||||
bitmap->referredElement=bitmap->referredElement->prev;
|
||||
}
|
||||
bitmap->referredElementStart=bitmap->referredElement;
|
||||
|
|
Loading…
Reference in New Issue