From 76f548bb56fd3f298d6700ec3a3138e5797bfb81 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 22 Jun 2015 11:01:20 +0100 Subject: [PATCH] Fix failing test due to floating pt exception --- src/grib_accessor_class_bufr_data_array.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/grib_accessor_class_bufr_data_array.c b/src/grib_accessor_class_bufr_data_array.c index ce325121c..5dc031313 100644 --- a/src/grib_accessor_class_bufr_data_array.c +++ b/src/grib_accessor_class_bufr_data_array.c @@ -706,8 +706,8 @@ static int encode_new_element(grib_context* c,grib_accessor_bufr_data_array* sel } } else { /* numeric or codetable or flagtable */ - grib_context_log(c, GRIB_LOG_DEBUG,"BUFR data encoding: \t %s = %ld", - self->expanded->v[i]->shortName,(long)cdval); + grib_context_log(c, GRIB_LOG_DEBUG,"BUFR data encoding: \t %s = %g", + self->expanded->v[i]->shortName,cdval); if (self->expanded->v[i]->code==31031) cdval=0; if (self->compressedData) { grib_darray* doubleValues=grib_darray_new(c,1,1);