Issue #9566: explain why (int)len cannot underflow
This commit is contained in:
parent
c99823211b
commit
ed7e222454
|
@ -839,6 +839,7 @@ readinst(char *buf, int buf_size, PyObject *meth)
|
|||
finally:
|
||||
Py_XDECREF(arg);
|
||||
Py_XDECREF(str);
|
||||
/* len <= buf_size <= INT_MAX (see above) */
|
||||
return (int)len;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue