Const correctness

This commit is contained in:
shahramn 2024-09-06 14:14:33 +01:00
parent ac4dc27fed
commit d48e3f7fcc
1 changed files with 1 additions and 1 deletions

View File

@ -310,7 +310,7 @@ long grib_accessor_class_gen_t::byte_offset(grib_accessor* a)
int grib_accessor_class_gen_t::unpack_bytes(grib_accessor* a, unsigned char* val, size_t* len)
{
unsigned char* buf = grib_handle_of_accessor(a)->buffer->data;
const unsigned char* buf = grib_handle_of_accessor(a)->buffer->data;
const long length = a->byte_count();
const long offset = a->byte_offset();