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

This commit is contained in:
Victor Stinner 2013-06-24 23:01:33 +02:00
parent 9d89ae64b9
commit 9a282975ef
1 changed files with 1 additions and 1 deletions

View File

@ -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;