mirror of https://github.com/ecmwf/eccodes.git
Fixed warning: ISO C90 forbids mixed declarations and code
This commit is contained in:
parent
7d45173851
commit
9f0129fe07
|
@ -205,6 +205,7 @@ static int unpack_double(grib_accessor* a, double* val, size_t *len)
|
|||
size_t n_vals = 0;
|
||||
size_t size;
|
||||
unsigned char* decoded = NULL;
|
||||
unsigned char *p = NULL;
|
||||
long pos = 0;
|
||||
|
||||
long binary_scale_factor = 0;
|
||||
|
@ -296,7 +297,7 @@ static int unpack_double(grib_accessor* a, double* val, size_t *len)
|
|||
|
||||
|
||||
pos = 0;
|
||||
unsigned char *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);
|
||||
|
|
Loading…
Reference in New Issue