mirror of
https://github.com/python/cpython
synced 2024-10-14 11:03:18 +00:00
Use size_t, not ssize_t (issue #14801).
This commit is contained in:
commit
1b634c266c
|
@ -2406,7 +2406,7 @@ PyType_FromSpec(PyType_Spec *spec)
|
|||
/* need to make a copy of the docstring slot, which usually
|
||||
points to a static string literal */
|
||||
if (slot->slot == Py_tp_doc) {
|
||||
ssize_t len = strlen(slot->pfunc)+1;
|
||||
size_t len = strlen(slot->pfunc)+1;
|
||||
char *tp_doc = PyObject_MALLOC(len);
|
||||
if (tp_doc == NULL)
|
||||
goto fail;
|
||||
|
|
Loading…
Reference in a new issue