changeset: 84319:5c407b64920c user: Victor Stinner date: Mon Jun 24 23:01:33 2013 +0200 files: Modules/_io/textio.c description: Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64 diff -r efe3c1df3954 -r 5c407b64920c Modules/_io/textio.c --- a/Modules/_io/textio.c Mon Jun 24 20:39:28 2013 +0100 +++ b/Modules/_io/textio.c Mon Jun 24 23:01:33 2013 +0200 @@ -2347,7 +2347,7 @@ /* 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;