Skip to content

Commit 327354d

Browse files
pitrouskrah
authored andcommitted
bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (pythonGH-24962)
Complete the update to libmpdec-2.5.1. Co-authored-by: Stefan Krah <skrah@bytereef.org> (removed everything but module update for Gentoo)
1 parent 1def3fe commit 327354d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/_decimal/_decimal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3279,7 +3279,7 @@ dec_format(PyObject *dec, PyObject *args)
32793279
}
32803280
else {
32813281
size_t n = strlen(spec.dot);
3282-
if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) {
3282+
if (n > 1 || (n == 1 && !isascii((unsigned char)spec.dot[0]))) {
32833283
/* fix locale dependent non-ascii characters */
32843284
dot = dotsep_as_utf8(spec.dot);
32853285
if (dot == NULL) {
@@ -3288,7 +3288,7 @@ dec_format(PyObject *dec, PyObject *args)
32883288
spec.dot = PyBytes_AS_STRING(dot);
32893289
}
32903290
n = strlen(spec.sep);
3291-
if (n > 1 || (n == 1 && !isascii((uchar)spec.sep[0]))) {
3291+
if (n > 1 || (n == 1 && !isascii((unsigned char)spec.sep[0]))) {
32923292
/* fix locale dependent non-ascii characters */
32933293
sep = dotsep_as_utf8(spec.sep);
32943294
if (sep == NULL) {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2214,7 +2214,7 @@ def detect_decimal(self):
22142214
undef_macros = []
22152215
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
22162216
include_dirs = []
2217-
libraries = [':libmpdec.so.2']
2217+
libraries = ['mpdec']
22182218
sources = ['_decimal/_decimal.c']
22192219
depends = ['_decimal/docstrings.h']
22202220
else:

0 commit comments

Comments
 (0)