diff --git a/src/eccodes_prototypes.h b/src/eccodes_prototypes.h index c8a12553b..9041e2bc2 100644 --- a/src/eccodes_prototypes.h +++ b/src/eccodes_prototypes.h @@ -1351,7 +1351,7 @@ int grib2_is_PDTN_AerosolOptical(long productDefinitionTemplateNumber); int grib2_select_PDTN(int is_eps, int is_instant, int is_chemical, int is_chemical_srcsink, int is_chemical_distfn, int is_aerosol, int is_aerosol_optical); size_t sum_of_pl_array(const long* pl, size_t plsize); int grib_is_earth_oblate(grib_handle* h); -int grib_check_data_values_range(grib_handle* h, const double min_val, const double max_val); +int grib_check_data_values_minmax(grib_handle* h, const double min_val, const double max_val); int grib_producing_large_constant_fields(grib_handle* h, int edition); int grib_util_grib_data_quality_check(grib_handle* h, double min_val, double max_val); diff --git a/src/grib_accessor_class_data_ccsds_packing.cc b/src/grib_accessor_class_data_ccsds_packing.cc index 06f9317b7..f5c31d74f 100644 --- a/src/grib_accessor_class_data_ccsds_packing.cc +++ b/src/grib_accessor_class_data_ccsds_packing.cc @@ -274,7 +274,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) else if (val[i] < min) min = val[i]; } - if ((err = grib_check_data_values_range(hand, min, max)) != GRIB_SUCCESS) { + if ((err = grib_check_data_values_minmax(hand, min, max)) != GRIB_SUCCESS) { return err; } diff --git a/src/grib_accessor_class_data_simple_packing.cc b/src/grib_accessor_class_data_simple_packing.cc index 92d9394ce..0d44acd7f 100644 --- a/src/grib_accessor_class_data_simple_packing.cc +++ b/src/grib_accessor_class_data_simple_packing.cc @@ -632,7 +632,7 @@ static int pack_double(grib_accessor* a, const double* val, size_t* len) else if (val[i] < min) min = val[i]; } - if ((err = grib_check_data_values_range(gh, min, max)) != GRIB_SUCCESS) { + if ((err = grib_check_data_values_minmax(gh, min, max)) != GRIB_SUCCESS) { return err; } diff --git a/src/grib_util.cc b/src/grib_util.cc index e5f507a73..e09bc7a27 100644 --- a/src/grib_util.cc +++ b/src/grib_util.cc @@ -2055,7 +2055,7 @@ int grib_is_earth_oblate(grib_handle* h) return 0; } -int grib_check_data_values_range(grib_handle* h, const double min_val, const double max_val) +int grib_check_data_values_minmax(grib_handle* h, const double min_val, const double max_val) { int result = GRIB_SUCCESS; grib_context* ctx = h->context;