From: Matthias Klose Date: Sun, 1 Dec 2024 12:12:57 +0000 (+0200) Subject: mpdecimal-2.5.1 X-Git-Tag: archive/raspbian/3.9.2-1+rpi1+deb11u2^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=91adb3eab4436500890e689a3a4d2afdba0bd6d7;p=python3.9.git mpdecimal-2.5.1 Gbp-Pq: Name mpdecimal-2.5.1.diff --- diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index fb4e020..5788721 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -3280,7 +3280,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) { @@ -3289,7 +3289,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) { diff --git a/setup.py b/setup.py index 9c646a2..1ee6db2 100644 --- a/setup.py +++ b/setup.py @@ -2193,7 +2193,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: