ECC-777: Compiling with gcc and -std=c99 fails

This commit is contained in:
Shahram Najm 2018-11-15 14:25:35 +00:00
parent e30031747c
commit b2ff8475bf
2 changed files with 10 additions and 1 deletions

View File

@ -21,6 +21,14 @@
*/
#define EFDEBUG 0
#ifndef LLONG_MAX
#define LLONG_MAX LONG_MAX
#endif
#ifndef ULLONG_MAX
#define ULLONG_MAX ULONG_MAX
#endif
typedef long long Fraction_value_type;
typedef struct Fraction_type {

View File

@ -113,12 +113,13 @@ static void test_reduced_gg(int remove_local_def, int edition, const char* packi
h2 = grib_util_set_spec(handle, &spec, &packing_spec, set_spec_flags, values, outlen, &err);
assert(err == GRIB_INTERNAL_ERROR);
assert(!h2);
#ifdef INFINITY
packing_spec.accuracy=GRIB_UTIL_ACCURACY_USE_PROVIDED_BITS_PER_VALUES;
values[0] = INFINITY;
h2 = grib_util_set_spec(handle, &spec, &packing_spec, set_spec_flags, values, outlen, &err);
assert(err == GRIB_ENCODING_ERROR);
assert(!h2);
#endif
}
/* Write out the message to the output file */