ECC-1427: clean up

This commit is contained in:
Shahram Najm 2022-07-18 11:17:03 +01:00
parent ed56dd3efe
commit ab287f9e0b
1 changed files with 2 additions and 1 deletions

View File

@ -224,6 +224,7 @@ static int unpack_double(grib_accessor* a, double* val, size_t* len)
size_t n_vals = 0;
size_t size = 0;
unsigned char* decoded = NULL;
/*unsigned char* p = NULL;*/
long pos = 0;
long nn = 0;
@ -310,7 +311,7 @@ static int unpack_double(grib_accessor* a, double* val, size_t* len)
/* printf("bscale=%g dscale=%g reference_value=%g\n",bscale,dscale,reference_value); */
pos = 0;
#if 0
p = decoded;
p = decoded;
for (i = 0; i < n_vals; i++) {
val[i] = (double)(((grib_decode_unsigned_long(p, &pos, bits8) * bscale) + reference_value) * dscale);
}