ECC-1096: bufr_dump shows '2147483647' instead of 'null'

This commit is contained in:
Shahram Najm 2020-03-19 12:44:17 +00:00
parent ed3130298f
commit 6df011e687
1 changed files with 7 additions and 3 deletions

View File

@ -294,10 +294,14 @@ static void dump_long(grib_dumper* d, grib_accessor* a, const char* comment)
}
if (icount > cols)
fprintf(self->dumper.out, "\n%-*s", depth, " ");
if (doing_unexpandedDescriptors)
if (doing_unexpandedDescriptors) {
fprintf(self->dumper.out, "%06ld ", values[i]);
else
fprintf(self->dumper.out, "%ld ", values[i]);
} else {
if (grib_is_missing_long(a, values[i]))
fprintf(self->dumper.out, "%s", "null");
else
fprintf(self->dumper.out, "%ld ", values[i]);
}
depth -= 2;
fprintf(self->dumper.out, "\n%-*s]", depth, " ");