diff options
author | Serhiy Storchaka <storchaka@gmail.com> | 2021-01-31 13:55:13 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 13:55:13 (GMT) |
commit | 42b1806af90b86ec393ca7da14e99ce95ec6c53b (patch) | |
tree | 8207a42275dde575bd529a07304ccda2370de2d4 /Include | |
parent | 89294e30fffe6b86c44247cbde39cc965d01d555 (diff) | |
download | cpython-42b1806af90b86ec393ca7da14e99ce95ec6c53b.zip cpython-42b1806af90b86ec393ca7da14e99ce95ec6c53b.tar.gz cpython-42b1806af90b86ec393ca7da14e99ce95ec6c53b.tar.bz2 |
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/unicodeobject.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/cpython/unicodeobject.h b/Include/cpython/unicodeobject.h index f1b4455..a4057fd 100644 --- a/Include/cpython/unicodeobject.h +++ b/Include/cpython/unicodeobject.h @@ -22,7 +22,7 @@ */ #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) |