Issue #9566: explain why (int)len cannot underflow

This commit is contained in:
Victor Stinner 2011-01-04 21:58:10 +00:00
parent c99823211b
commit ed7e222454

View File

@ -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;
}