summaryrefslogtreecommitdiffstats
path: root/Include/cpython
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-01-31 14:46:17 (GMT)
committerGitHub <noreply@github.com>2021-01-31 14:46:17 (GMT)
commit229ef39bcc14ee7838968dfda51d045304e5cf39 (patch)
tree45128043cd698d7abe07ec94b8cd78930a1e6470 /Include/cpython
parentde76ce540ed013a31d4c80bca2587a2dd7c23652 (diff)
downloadcpython-229ef39bcc14ee7838968dfda51d045304e5cf39.zip
cpython-229ef39bcc14ee7838968dfda51d045304e5cf39.tar.gz
cpython-229ef39bcc14ee7838968dfda51d045304e5cf39.tar.bz2
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350) (GH-24397)
(cherry picked from commit 42b1806af90b86ec393ca7da14e99ce95ec6c53b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Include/cpython')
-rw-r--r--Include/cpython/unicodeobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h
index 54a13e3..87ff31d 100644
--- a/Include/cpython/unicodeobject.h
+++ b/Include/cpython/unicodeobject.h
@@ -22,7 +22,7 @@ extern "C" {
*/
#define Py_UNICODE_ISSPACE(ch) \
- ((ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch))
+ ((Py_UCS4)(ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch))
#define Py_UNICODE_ISLOWER(ch) _PyUnicode_IsLowercase(ch)
#define Py_UNICODE_ISUPPER(ch) _PyUnicode_IsUppercase(ch)