From 18edad5b52b919d0a3c9ae5351ce838c24241096 Mon Sep 17 00:00:00 2001 From: shahramn Date: Sat, 24 Feb 2024 21:57:46 +0000 Subject: [PATCH] Testing: smart_table unpack_string --- src/grib_accessor_class_smart_table.cc | 2 +- tests/bufr_filter_misc.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/grib_accessor_class_smart_table.cc b/src/grib_accessor_class_smart_table.cc index dd6cfcd41..5417dec67 100644 --- a/src/grib_accessor_class_smart_table.cc +++ b/src/grib_accessor_class_smart_table.cc @@ -545,7 +545,7 @@ static int unpack_long(grib_accessor* a, long* val, size_t* len) if (*len < self->tableCodesSize) { grib_context_log(a->context, GRIB_LOG_ERROR, - "Wrong size (%lu) for %s it contains %lu values", *len, a->name, self->tableCodesSize); + "Wrong size (%zu) for %s, it contains %zu values", *len, a->name, self->tableCodesSize); *len = 0; return GRIB_ARRAY_TOO_SMALL; } diff --git a/tests/bufr_filter_misc.sh b/tests/bufr_filter_misc.sh index f1edf0368..f2021a3f5 100755 --- a/tests/bufr_filter_misc.sh +++ b/tests/bufr_filter_misc.sh @@ -1290,6 +1290,15 @@ cat > $fRules < $fLog +# smart table unpack_string +tempBufr=temp.$label.bufr +f="$ECCODES_SAMPLES_PATH/BUFR4.tmpl" +cat > $fRules <