Commits

Victor Stinner committed 5c407b6

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

  • Participants
  • Parent commits efe3c1d

Comments (0)

Files changed (1)

Modules/_io/textio.c

 
     /* 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;