summaryrefslogtreecommitdiffstats
path: root/Include
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2021-01-31 14:20:14 (GMT)
committerGitHub <noreply@github.com>2021-01-31 14:20:14 (GMT)
commit995a6c015024f050b99ba8f9837dfc6b82d83f7d (patch)
treeddd5433b5044799c43ef86e335f503050b78887b /Include
parent926ca51be4b9b80c41a647bbc2fb9c40ff108ff0 (diff)
downloadcpython-995a6c015024f050b99ba8f9837dfc6b82d83f7d.zip
cpython-995a6c015024f050b99ba8f9837dfc6b82d83f7d.tar.gz
cpython-995a6c015024f050b99ba8f9837dfc6b82d83f7d.tar.bz2
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)
(cherry picked from commit 42b1806af90b86ec393ca7da14e99ce95ec6c53b) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Diffstat (limited to 'Include')
-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 1fc732a..503b079 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)