diff options
author | Antoine Pitrou <antoine@python.org> | 2021-03-30 16:11:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-30 16:11:06 (GMT) |
commit | 73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2 (patch) | |
tree | ced81e62c16d112025b5ac796a893f794350b085 /Modules/_decimal/_decimal.c | |
parent | a7ff6df60c05e1b69fca743573b1e118bebf121d (diff) | |
download | cpython-73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2.zip cpython-73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2.tar.gz cpython-73b20ae2fb7a5c1374aa5c3719f64c53d29fa0d2.tar.bz2 |
bpo-41369: Finish updating the vendored libmpdec to version 2.5.1 (GH-24962)
Complete the update to libmpdec-2.5.1.
Co-authored-by: Stefan Krah <skrah@bytereef.org>
Diffstat (limited to 'Modules/_decimal/_decimal.c')
-rw-r--r-- | Modules/_decimal/_decimal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c index 83e237d..9a4329f 100644 --- a/Modules/_decimal/_decimal.c +++ b/Modules/_decimal/_decimal.c @@ -3293,7 +3293,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) { @@ -3302,7 +3302,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) { |