mpdecimal-2.5.1
authorMatthias Klose <doko@debian.org>
Wed, 20 Jan 2021 14:49:22 +0000 (14:49 +0000)
committerMatthias Klose <doko@debian.org>
Wed, 20 Jan 2021 14:49:22 +0000 (14:49 +0000)
Gbp-Pq: Name mpdecimal-2.5.1.diff

Modules/_decimal/_decimal.c
setup.py

index fb4e020f1260e6ec9e17d77e5aa3317e08294a24..5788721bd949c726d1febbab3e6672ff878d9a30 100644 (file)
@@ -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) {
index 002c7101b5a42dab9f9ea97cdb692046b6a150b6..f36a4663584473bf21ca951531c1cc33a35a2d27 100644 (file)
--- 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: