Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9a28297

Browse files
committed
Issue #9566: _io: Use Py_SAFE_DOWNCAST for fix a compiler warning on Windows x64
1 parent 9d89ae6 commit 9a28297

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Modules/_io/textio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2347,7 +2347,7 @@ textiowrapper_tell(textio *self, PyObject *args)
23472347

23482348
/* Note our initial start point. */
23492349
cookie.start_pos += skip_bytes;
2350-
cookie.chars_to_skip = chars_to_skip;
2350+
cookie.chars_to_skip = Py_SAFE_DOWNCAST(chars_to_skip, Py_ssize_t, int);
23512351
if (chars_to_skip == 0)
23522352
goto finally;
23532353

0 commit comments

Comments
 (0)