diff --git a/src/grib_gaussian_reduced.cc b/src/grib_gaussian_reduced.cc index 12f616c02..8ba2ed088 100644 --- a/src/grib_gaussian_reduced.cc +++ b/src/grib_gaussian_reduced.cc @@ -115,7 +115,7 @@ static Fraction_type fraction_construct_from_double(double x) x = 1.0 / (x - a); - if (x > LLONG_MAX) { + if (x > (double)LLONG_MAX) { break; }