Skip to content

Commit a9ffcd6

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 <[email protected]> (removed everything but module update for Gentoo)
1 parent a6916d9 commit a9ffcd6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Modules/_decimal/_decimal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3284,7 +3284,7 @@ dec_format(PyObject *dec, PyObject *args)
32843284
}
32853285
else {
32863286
size_t n = strlen(spec.dot);
3287-
if (n > 1 || (n == 1 && !isascii((uchar)spec.dot[0]))) {
3287+
if (n > 1 || (n == 1 && !isascii((unsigned char)spec.dot[0]))) {
32883288
/* fix locale dependent non-ascii characters */
32893289
dot = dotsep_as_utf8(spec.dot);
32903290
if (dot == NULL) {
@@ -3293,7 +3293,7 @@ dec_format(PyObject *dec, PyObject *args)
32933293
spec.dot = PyBytes_AS_STRING(dot);
32943294
}
32953295
n = strlen(spec.sep);
3296-
if (n > 1 || (n == 1 && !isascii((uchar)spec.sep[0]))) {
3296+
if (n > 1 || (n == 1 && !isascii((unsigned char)spec.sep[0]))) {
32973297
/* fix locale dependent non-ascii characters */
32983298
sep = dotsep_as_utf8(spec.sep);
32993299
if (sep == NULL) {

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2065,7 +2065,7 @@ def detect_decimal(self):
20652065
undef_macros = []
20662066
if '--with-system-libmpdec' in sysconfig.get_config_var("CONFIG_ARGS"):
20672067
include_dirs = []
2068-
libraries = [':libmpdec.so.2']
2068+
libraries = ['mpdec']
20692069
sources = ['_decimal/_decimal.c']
20702070
depends = ['_decimal/docstrings.h']
20712071
else:

0 commit comments

Comments
 (0)