summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Krah <skrah@bytereef.org>2020-06-28 20:01:01 (GMT)
committerGitHub <noreply@github.com>2020-06-28 20:01:01 (GMT)
commit8bea91b5e9ea07ca93958e131b436024f0b1b1cf (patch)
tree144764fb1b8518b3a8358e0bfe395b96a14525af
parent04cdeb7a5617c48102f45b965e683b12cdf934f8 (diff)
downloadcpython-8bea91b5e9ea07ca93958e131b436024f0b1b1cf.zip
cpython-8bea91b5e9ea07ca93958e131b436024f0b1b1cf.tar.gz
cpython-8bea91b5e9ea07ca93958e131b436024f0b1b1cf.tar.bz2
bpo-40874 Update the required libmpdec version for the decimal module (GH-21202)
-rw-r--r--Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst1
-rw-r--r--Modules/_decimal/_decimal.c4
2 files changed, 3 insertions, 2 deletions
diff --git a/Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst b/Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst
new file mode 100644
index 0000000..a43eab8
--- /dev/null
+++ b/Misc/NEWS.d/next/Library/2020-06-28-21-16-51.bpo-40874.YImvzA.rst
@@ -0,0 +1 @@
+The decimal module now requires libmpdec-2.5.0.
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
index 20ba8fb..ff7c647 100644
--- a/Modules/_decimal/_decimal.c
+++ b/Modules/_decimal/_decimal.c
@@ -36,8 +36,8 @@
#include "docstrings.h"
-#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02040100
- #error "libmpdec version >= 2.4.1 required"
+#if !defined(MPD_VERSION_HEX) || MPD_VERSION_HEX < 0x02050000
+ #error "libmpdec version >= 2.5.0 required"
#endif