We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de76ce5 commit 229ef39Copy full SHA for 229ef39
Include/cpython/unicodeobject.h
@@ -22,7 +22,7 @@ extern "C" {
22
23
*/
24
#define Py_UNICODE_ISSPACE(ch) \
25
- ((ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch))
+ ((Py_UCS4)(ch) < 128U ? _Py_ascii_whitespace[(ch)] : _PyUnicode_IsWhitespace(ch))
26
27
#define Py_UNICODE_ISLOWER(ch) _PyUnicode_IsLowercase(ch)
28
#define Py_UNICODE_ISUPPER(ch) _PyUnicode_IsUppercase(ch)
Misc/NEWS.d/next/C API/2021-01-27-10-27-47.bpo-43030.loDcD_.rst
@@ -0,0 +1,2 @@
1
+Fixed a compiler warning in :c:func:`Py_UNICODE_ISSPACE()` on platforms with
2
+signed ``wchar_t``.
0 commit comments