From: Victor Stinner Date: Mon, 24 Jun 2013 21:01:33 +0000 (+0200) Subject: Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64 X-Git-Tag: v3.4.0a1~402 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a282975ef37fbee5bdacd1633f9de8c249bb5cf;p=python Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64 --- diff --git a/Modules/_io/textio.c b/Modules/_io/textio.c index 4d0009da5b..283411b10c 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;