1 diff -Naurd mpfr-4.1.1-a/PATCHES mpfr-4.1.1-b/PATCHES
2 --- mpfr-4.1.1-a/PATCHES 2022-11-23 11:45:26.800476079 +0000
3 +++ mpfr-4.1.1-b/PATCHES 2022-11-23 11:45:26.844475966 +0000
6 diff -Naurd mpfr-4.1.1-a/VERSION mpfr-4.1.1-b/VERSION
7 --- mpfr-4.1.1-a/VERSION 2022-11-17 13:28:44.000000000 +0000
8 +++ mpfr-4.1.1-b/VERSION 2022-11-23 11:45:26.844475966 +0000
12 diff -Naurd mpfr-4.1.1-a/src/mpfr.h mpfr-4.1.1-b/src/mpfr.h
13 --- mpfr-4.1.1-a/src/mpfr.h 2022-11-17 13:28:44.000000000 +0000
14 +++ mpfr-4.1.1-b/src/mpfr.h 2022-11-23 11:45:26.840475978 +0000
16 #define MPFR_VERSION_MAJOR 4
17 #define MPFR_VERSION_MINOR 1
18 #define MPFR_VERSION_PATCHLEVEL 1
19 -#define MPFR_VERSION_STRING "4.1.1"
20 +#define MPFR_VERSION_STRING "4.1.1-p1"
23 MPFR_USE_FILE: Define it to make MPFR define functions dealing
25 #if __GNUC__ > 2 || __GNUC_MINOR__ >= 95
26 #define mpfr_custom_get_kind(x) \
28 - mpfr_ptr _x = (x); \
29 + mpfr_srcptr _x = (x); \
30 _x->_mpfr_exp > __MPFR_EXP_INF ? \
31 (mpfr_int) MPFR_REGULAR_KIND * MPFR_SIGN (_x) \
32 : _x->_mpfr_exp == __MPFR_EXP_INF ? \
33 diff -Naurd mpfr-4.1.1-a/src/version.c mpfr-4.1.1-b/src/version.c
34 --- mpfr-4.1.1-a/src/version.c 2022-11-17 13:28:44.000000000 +0000
35 +++ mpfr-4.1.1-b/src/version.c 2022-11-23 11:45:26.844475966 +0000
38 mpfr_get_version (void)
43 diff -Naurd mpfr-4.1.1-a/tests/tstckintc.c mpfr-4.1.1-b/tests/tstckintc.c
44 --- mpfr-4.1.1-a/tests/tstckintc.c 2022-05-06 13:47:17.000000000 +0000
45 +++ mpfr-4.1.1-b/tests/tstckintc.c 2022-11-23 11:45:26.836475987 +0000
47 test_nan_inf_zero (void)
50 + mpfr_srcptr sval; /* for compilation error checking */
56 val = new_mpfr (MPFR_PREC_MIN);
59 - kind = (mpfr_custom_get_kind) (val);
60 + kind = (mpfr_custom_get_kind) (sval);
61 if (kind != MPFR_NAN_KIND)
63 printf ("mpfr_custom_get_kind error: ");
65 dummy_set_si (long si)
68 - long * r = dummy_new ();
69 + mpfr_srcptr px; /* for compilation error checking */
70 + long *r = dummy_new ();
71 int i1, i2, i3, i4, i5;
73 /* Check that the type "void *" can be used, like with the function.
75 MPFR_ASSERTN (i5 == 1);
77 mpfr_set_si (x, si, MPFR_RNDN);
78 - r[0] = mpfr_custom_get_kind (x);
80 + r[0] = mpfr_custom_get_kind (px);
82 /* Check that the type "void *" can be used in C, like with the function
83 (forbidden in C++). Also check side effects. */