mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
This commit is contained in:
parent
12174a5dca
commit
706768c687
13 changed files with 24 additions and 21 deletions
|
@ -1730,7 +1730,7 @@ _PyIO_find_line_ending(
|
|||
else {
|
||||
/* Non-universal mode. */
|
||||
Py_ssize_t readnl_len = PyUnicode_GET_LENGTH(readnl);
|
||||
char *nl = PyUnicode_DATA(readnl);
|
||||
Py_UCS1 *nl = PyUnicode_1BYTE_DATA(readnl);
|
||||
/* Assume that readnl is an ASCII character. */
|
||||
assert(PyUnicode_KIND(readnl) == PyUnicode_1BYTE_KIND);
|
||||
if (readnl_len == 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue