diff --git a/src/grib_accessor_class_codetable.c b/src/grib_accessor_class_codetable.c index e12302b9d..7c33c898e 100644 --- a/src/grib_accessor_class_codetable.c +++ b/src/grib_accessor_class_codetable.c @@ -575,7 +575,7 @@ static void dump(grib_accessor* a, grib_dumper* dumper) if (table && value >= 0 && value < table->size) { if (table->entries[value].abbreviation) { - int b = atol(table->entries[value].abbreviation); + long b = atol(table->entries[value].abbreviation); if (b == value) strcpy(comment, table->entries[value].title); else