From 2b0efc1129fad206457bfc84018028dc66ad4cb1 Mon Sep 17 00:00:00 2001 From: shahramn Date: Tue, 5 Nov 2024 22:20:46 +0000 Subject: [PATCH] Fix DEBUG_ASSERT_ACCESS statement --- src/geo_nearest/grib_nearest_class_reduced.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/geo_nearest/grib_nearest_class_reduced.cc b/src/geo_nearest/grib_nearest_class_reduced.cc index f0e057b33..60a40fb15 100644 --- a/src/geo_nearest/grib_nearest_class_reduced.cc +++ b/src/geo_nearest/grib_nearest_class_reduced.cc @@ -196,7 +196,7 @@ int Reduced::find_global(grib_handle* h, if (lon > 180 && lon < 360) lon -= 360; } - DEBUG_ASSERT_ACCESS(lons_, (long)ilon, (long)nearest->values_count); + DEBUG_ASSERT_ACCESS(lons_, (long)ilon, (long)values_count_); lons_[ilon++] = lon; } lats_count_ = ilat;