diff --git a/src/accessor/grib_accessor_class_long.cc b/src/accessor/grib_accessor_class_long.cc index a1f125f25..89d757acb 100644 --- a/src/accessor/grib_accessor_class_long.cc +++ b/src/accessor/grib_accessor_class_long.cc @@ -129,7 +129,7 @@ int grib_accessor_class_long_t::compare(grib_accessor* a, grib_accessor* b) return err; alen = count; - err = a->value_count(&count); + err = b->value_count(&count); if (err) return err; blen = count;