summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2013-06-24 21:01:33 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2013-06-24 21:01:33 (GMT)
commit9a282975ef37fbee5bdacd1633f9de8c249bb5cf (patch)
tree891e87ebececb0d2f10c3978093b64393bb86935 /Modules/_io
parent9d89ae64b90b3b942b647292fdd2fc5776c4f525 (diff)
downloadcpython-9a282975ef37fbee5bdacd1633f9de8c249bb5cf.zip
cpython-9a282975ef37fbee5bdacd1633f9de8c249bb5cf.tar.gz
cpython-9a282975ef37fbee5bdacd1633f9de8c249bb5cf.tar.bz2
Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64
Diffstat (limited to 'Modules/_io')
-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 4d0009d..283411b 100644
--- a/Modules/_io/textio.c
+++ b/Modules/_io/textio.c
@@ -2347,7 +2347,7 @@ textiowrapper_tell(textio *self, PyObject *args)
/* Note our initial start point. */
cookie.start_pos += skip_bytes;
- cookie.chars_to_skip = chars_to_skip;
+ cookie.chars_to_skip = Py_SAFE_DOWNCAST(chars_to_skip, Py_ssize_t, int);
if (chars_to_skip == 0)
goto finally;