Added assertion

This commit is contained in:
Shahram Najm 2015-10-15 17:37:15 +01:00
parent 369fc35677
commit 5809cd0b8e
1 changed files with 1 additions and 0 deletions

View File

@ -333,6 +333,7 @@ static int pack_long(grib_accessor* a, const long* val, size_t *len)
max_pl = pl[0];
for (i=1; i<plsize; i++) {
Assert( pl[i] > 0 );
if (pl[i] > max_pl) max_pl = pl[i];
}
grib_context_free(c, pl);