From 9a282975ef37fbee5bdacd1633f9de8c249bb5cf Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Mon, 24 Jun 2013 23:01:33 +0200 Subject: Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64 --- Modules/_io/textio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v0.12