diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2013-06-24 21:01:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2013-06-24 21:01:33 (GMT) |
commit | 9a282975ef37fbee5bdacd1633f9de8c249bb5cf (patch) | |
tree | 891e87ebececb0d2f10c3978093b64393bb86935 /Modules/_io | |
parent | 9d89ae64b90b3b942b647292fdd2fc5776c4f525 (diff) | |
download | cpython-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.c | 2 |
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; |