mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Add safecase to silence Win64 warning.
This commit is contained in:
parent
d1b7f3993a
commit
33cac8578b
1 changed files with 2 additions and 1 deletions
|
@ -533,7 +533,8 @@ teedataobject_new(PyTypeObject *type, PyObject *args, PyObject *kw)
|
|||
tdo->values[i] = PyList_GET_ITEM(values, i);
|
||||
Py_INCREF(tdo->values[i]);
|
||||
}
|
||||
tdo->numread = len;
|
||||
/* len <= LINKCELLS < INT_MAX */
|
||||
tdo->numread = Py_SAFE_DOWNCAST(len, Py_ssize_t, int);
|
||||
|
||||
if (len == LINKCELLS) {
|
||||
if (next != Py_None) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue