summaryrefslogtreecommitdiffstats
path: root/Modules/_io/textio.c
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2014-08-15 23:03:39 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2014-08-15 23:03:39 (GMT)
commit706768c687f5413c909168736506aaf4fb4861c0 (patch)
tree98131f201f269d30031ed6e3c6d98fe4cf1fe649 /Modules/_io/textio.c
parent12174a5dcaf1bdcd8d5fd790a8cad07049bddce6 (diff)
downloadcpython-706768c687f5413c909168736506aaf4fb4861c0.zip
cpython-706768c687f5413c909168736506aaf4fb4861c0.tar.gz
cpython-706768c687f5413c909168736506aaf4fb4861c0.tar.bz2
Issue #22156: Fix some "comparison between signed and unsigned integers"
compiler warnings in the Modules/ subdirectory.
Diffstat (limited to 'Modules/_io/textio.c')
-rw-r--r--Modules/_io/textio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c
index aed5b2d..b4c3c40 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -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) {