Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d89ae6 commit 9a28297Copy full SHA for 9a28297
1 file changed
Modules/_io/textio.c
@@ -2347,7 +2347,7 @@ textiowrapper_tell(textio *self, PyObject *args)
2347
2348
/* Note our initial start point. */
2349
cookie.start_pos += skip_bytes;
2350
- cookie.chars_to_skip = chars_to_skip;
+ cookie.chars_to_skip = Py_SAFE_DOWNCAST(chars_to_skip, Py_ssize_t, int);
2351
if (chars_to_skip == 0)
2352
goto finally;
2353
0 commit comments