diff options
author | Antoine Pitrou <antoine@python.org> | 2021-03-30 18:11:06 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2024-09-07 08:33:46 +0200 |
commit | 9947ddb69bf772b4d48954515e908011af8e8485 (patch) | |
tree | d49c26582276aafd265facb6d7a4cd83af9e6c3e | |
parent | [3.11] gh-115243: Fix crash in deque.index() when the deque is concurrently m... (diff) | |
download | cpython-9947ddb69bf772b4d48954515e908011af8e8485.tar.gz cpython-9947ddb69bf772b4d48954515e908011af8e8485.tar.bz2 cpython-9947ddb69bf772b4d48954515e908011af8e8485.zip |
bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962)gentoo-3.9.20
Complete the update to libmpdec-2.5.1.
Co-authored-by: Stefan Krah <skrah@bytereef.org>
(removed everything but module update for Gentoo)
-rw-r--r-- | Modules/_decimal/_decimal.c | 4 | ||||
-rw-r--r-- | setup.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index d80d7915507..28fd2097ff4 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -3279,7 +3279,7 @@ dec_format(PyObject *dec, PyObject *args) } else { size_t n = strlen(spec.dot); - if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) { + if (n > 1 || (n == 1 && !isascii((unsigned char)spec.dot[0]))) { /* fix locale dependent non-ascii characters */ dot = dotsep_as_utf8(spec.dot); if (dot == NULL) { @@ -3288,7 +3288,7 @@ dec_format(PyObject *dec, PyObject *args) spec.dot = PyBytes_AS_STRING(dot); } n = strlen(spec.sep); - if (n > 1 || (n == 1 && !isascii((uchar)spec.sep[0]))) { + if (n > 1 || (n == 1 && !isascii((unsigned char)spec.sep[0]))) { /* fix locale dependent non-ascii characters */ sep = dotsep_as_utf8(spec.sep); if (sep == NULL) { @@ -2214,7 +2214,7 @@ class PyBuildExt(build_ext): undef_macros = [] if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"): include_dirs = [] - libraries = [':libmpdec.so.2'] + libraries = ['mpdec'] sources = ['_decimal/_decimal.c'] depends = ['_decimal/docstrings.h'] else: |