Relocate assertion

This commit is contained in:
Shahram Najm 2015-08-13 15:31:33 +01:00
parent 7deff62671
commit 5bcfdaffd2
1 changed files with 1 additions and 2 deletions

View File

@ -225,8 +225,6 @@ static int unpack_double_element(grib_accessor* a, size_t idx, double* val)
err=grib_value_count(a,&n_vals);
if (err) return err;
Assert(idx < n_vals);
if((err = grib_get_long_internal(a->parent->h,self->bits_per_value,&bits_per_value)) !=
GRIB_SUCCESS)
return err;
@ -252,6 +250,7 @@ static int unpack_double_element(grib_accessor* a, size_t idx, double* val)
return GRIB_SUCCESS;
}
Assert(idx < n_vals);
s = grib_power(binary_scale_factor,2);
d = grib_power(-decimal_scale_factor,10) ;