eccodes/eccodes-32bit.patch

33 lines
1.4 KiB
Diff
Raw Normal View History

2020-03-15 12:27:46 +00:00
--- eccodes-2.17.0-Source.unchanged/src/grib_api_prototypes.h 2020-03-09 11:17:48.000000000 +0100
+++ eccodes-2.17.0-Source/src/grib_api_prototypes.h 2020-03-14 11:59:43.493457319 +0100
2020-02-08 16:37:51 +00:00
@@ -873,8 +873,8 @@ double grib_ieeefloat_error(double x);
2018-03-22 09:56:46 +00:00
double grib_long_to_ieee(unsigned long x);
2020-03-15 12:27:46 +00:00
int grib_nearest_smaller_ieee_float(double a, double* x);
2018-03-22 09:56:46 +00:00
unsigned long grib_ieee_to_long(double x);
-unsigned long grib_ieee64_to_long(double x);
-double grib_long_to_ieee64(unsigned long x);
+uint64_t grib_ieee64_to_long(double x);
+double grib_long_to_ieee64(uint64_t x);
2020-03-15 12:27:46 +00:00
int grib_ieee_decode_array(grib_context* c, unsigned char* buf, size_t nvals, int bytes, double* val);
int grib_ieee_decode_array(grib_context* c, unsigned char* buf, size_t nvals, int bytes, double* val);
int grib_ieee_encode_array(grib_context* c, double* val, size_t nvals, int bytes, unsigned char* buf);
--- eccodes-2.17.0-Source.unchanged/src/grib_ieeefloat.c 2020-03-09 11:17:48.000000000 +0100
+++ eccodes-2.17.0-Source/src/grib_ieeefloat.c 2020-03-14 12:07:45.848470121 +0100
@@ -443,14 +443,14 @@ unsigned long grib_ieee_to_long(double x
2018-03-22 09:56:46 +00:00
* grib_encode_unsigned_long.
*/
-unsigned long grib_ieee64_to_long(double x)
+uint64_t grib_ieee64_to_long(double x)
{
unsigned long lval;
2020-03-15 12:27:46 +00:00
memcpy(&lval, &x, 8);
2018-03-22 09:56:46 +00:00
return lval;
}
2020-03-15 12:27:46 +00:00
-double grib_long_to_ieee64(unsigned long x)
2018-03-22 09:56:46 +00:00
+double grib_long_to_ieee64(uint64_t x)
{
double dval;
2020-03-15 12:27:46 +00:00
memcpy(&dval, &x, 8);