db-move: moved polari from [testing] to [extra] (x86_64)
[arch-packages.git] / mpfr / trunk / patches.diff
blob0566c80b37847dd7c39d72365667b753e38679e5
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
4 @@ -0,0 +1 @@
5 +mpfr_custom_get_kind
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
9 @@ -1 +1 @@
10 -4.1.1
11 +4.1.1-p1
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
15 @@ -27,7 +27,7 @@
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"
22 /* User macros:
23 MPFR_USE_FILE: Define it to make MPFR define functions dealing
24 @@ -1027,7 +1027,7 @@
25 #if __GNUC__ > 2 || __GNUC_MINOR__ >= 95
26 #define mpfr_custom_get_kind(x) \
27 __extension__ ({ \
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
36 @@ -25,5 +25,5 @@
37 const char *
38 mpfr_get_version (void)
40 - return "4.1.1";
41 + return "4.1.1-p1";
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
46 @@ -295,14 +295,16 @@
47 test_nan_inf_zero (void)
49 mpfr_ptr val;
50 + mpfr_srcptr sval; /* for compilation error checking */
51 int sign;
52 int kind;
54 reset_stack ();
56 val = new_mpfr (MPFR_PREC_MIN);
57 + sval = val;
58 mpfr_set_nan (val);
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: ");
64 @@ -380,7 +382,8 @@
65 dummy_set_si (long si)
67 mpfr_t x;
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.
74 @@ -405,7 +408,8 @@
75 MPFR_ASSERTN (i5 == 1);
77 mpfr_set_si (x, si, MPFR_RNDN);
78 - r[0] = mpfr_custom_get_kind (x);
79 + px = 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. */