diff options
Diffstat (limited to 'math/mate-calc/files/patch-src_mp.h')
-rw-r--r-- | math/mate-calc/files/patch-src_mp.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/math/mate-calc/files/patch-src_mp.h b/math/mate-calc/files/patch-src_mp.h new file mode 100644 index 000000000000..e039e6f89d73 --- /dev/null +++ b/math/mate-calc/files/patch-src_mp.h @@ -0,0 +1,29 @@ +--- src/mp.h.orig 2021-10-09 19:59:01 UTC ++++ src/mp.h +@@ -69,7 +69,7 @@ void mperr(const char *format, ...) __attribute + /* Returns initialized MPNumber object */ + MPNumber mp_new(void); + +-MPNumber mp_new_from_unsigned_integer(ulong x); ++MPNumber mp_new_from_unsigned_integer(unsigned long x); + + MPNumber* mp_new_ptr(void); + +@@ -236,7 +236,7 @@ void mp_set_from_double(double x, MPNumber *z); + void mp_set_from_integer(long x, MPNumber *z); + + /* Sets z = x */ +-void mp_set_from_unsigned_integer(ulong x, MPNumber *z); ++void mp_set_from_unsigned_integer(unsigned long x, MPNumber *z); + + /* Sets z = numerator รท denominator */ + void mp_set_from_fraction(long numerator, long denominator, MPNumber *z); +@@ -265,7 +265,7 @@ double mp_to_double(const MPNumber *x); + long mp_to_integer(const MPNumber *x); + + /* Returns x as a native unsigned integer */ +-ulong mp_to_unsigned_integer(const MPNumber *x); ++unsigned long mp_to_unsigned_integer(const MPNumber *x); + + /* Sets z = sin x */ + void mp_sin(const MPNumber *x, MPAngleUnit unit, MPNumber *z); |