Commit 9a282975 authored by Victor Stinner's avatar Victor Stinner

Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64

parent 9d89ae64
...@@ -2347,7 +2347,7 @@ textiowrapper_tell(textio *self, PyObject *args) ...@@ -2347,7 +2347,7 @@ textiowrapper_tell(textio *self, PyObject *args)
/* Note our initial start point. */ /* Note our initial start point. */
cookie.start_pos += skip_bytes; 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) if (chars_to_skip == 0)
goto finally; goto finally;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment