mirror of https://github.com/ecmwf/eccodes.git
ECC-1096: bufr_dump shows '2147483647' instead of 'null'
This commit is contained in:
parent
ed3130298f
commit
6df011e687
|
@ -294,10 +294,14 @@ static void dump_long(grib_dumper* d, grib_accessor* a, const char* comment)
|
||||||
}
|
}
|
||||||
if (icount > cols)
|
if (icount > cols)
|
||||||
fprintf(self->dumper.out, "\n%-*s", depth, " ");
|
fprintf(self->dumper.out, "\n%-*s", depth, " ");
|
||||||
if (doing_unexpandedDescriptors)
|
if (doing_unexpandedDescriptors) {
|
||||||
fprintf(self->dumper.out, "%06ld ", values[i]);
|
fprintf(self->dumper.out, "%06ld ", values[i]);
|
||||||
else
|
} else {
|
||||||
fprintf(self->dumper.out, "%ld ", values[i]);
|
if (grib_is_missing_long(a, values[i]))
|
||||||
|
fprintf(self->dumper.out, "%s", "null");
|
||||||
|
else
|
||||||
|
fprintf(self->dumper.out, "%ld ", values[i]);
|
||||||
|
}
|
||||||
|
|
||||||
depth -= 2;
|
depth -= 2;
|
||||||
fprintf(self->dumper.out, "\n%-*s]", depth, " ");
|
fprintf(self->dumper.out, "\n%-*s]", depth, " ");
|
||||||
|
|
Loading…
Reference in New Issue