mirror of
https://github.com/python/cpython.git
synced 2025-07-29 22:24:49 +00:00
bpo-43030: Fixed a compiler warning in Py_UNICODE_ISSPACE with signed wchar_t (GH-24350)
This commit is contained in:
parent
89294e30ff
commit
42b1806af9
2 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
Fixed a compiler warning in :c:func:`Py_UNICODE_ISSPACE()` on platforms with
|
||||
signed ``wchar_t``.
|
Loading…
Add table
Add a link
Reference in a new issue