summarylogtreecommitdiffstats
path: root/0116-decimal-backport-build-fixes.patch
diff options
context:
space:
mode:
authoratomlong2021-10-23 17:55:22 +0800
committeratomlong2021-10-23 18:06:15 +0800
commit80096c8de4b34ec1ed8f30bb428918cd592b2424 (patch)
treeb48dd1e73de9ea35a4709fb6b93deb16331ec514 /0116-decimal-backport-build-fixes.patch
parent89a67c05174951d172252b1db96ff93cc4ec4bcd (diff)
downloadaur-mingw-w64-python.tar.gz
update to 3.9.7
Diffstat (limited to '0116-decimal-backport-build-fixes.patch')
-rw-r--r--0116-decimal-backport-build-fixes.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/0116-decimal-backport-build-fixes.patch b/0116-decimal-backport-build-fixes.patch
new file mode 100644
index 000000000000..4cfeb6286718
--- /dev/null
+++ b/0116-decimal-backport-build-fixes.patch
@@ -0,0 +1,35 @@
+From f9d77130f2c14f49081ba243f346e0c458f45d5e Mon Sep 17 00:00:00 2001
+From: Christoph Reiter <reiter.christoph@gmail.com>
+Date: Thu, 23 Sep 2021 09:55:32 +0200
+Subject: [PATCH 116/N] decimal: backport build fixes
+
+part of https://github.com/python/cpython/pull/24962
+---
+ Modules/_decimal/_decimal.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Modules/_decimal/_decimal.c b/Modules/_decimal/_decimal.c
+index d80d791..28fd209 100644
+--- a/Modules/_decimal/_decimal.c
++++ b/Modules/_decimal/_decimal.c
+@@ -3279,7 +3279,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) {
+@@ -3288,7 +3288,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) {
+--
+2.33.0
+