Commit 682d94c1 authored by Antoine Pitrou's avatar Antoine Pitrou

Use size_t, not ssize_t (issue #14801).

parent 87960da3
...@@ -2379,7 +2379,7 @@ PyType_FromSpec(PyType_Spec *spec) ...@@ -2379,7 +2379,7 @@ PyType_FromSpec(PyType_Spec *spec)
/* need to make a copy of the docstring slot, which usually /* need to make a copy of the docstring slot, which usually
points to a static string literal */ points to a static string literal */
if (slot->slot == Py_tp_doc) { 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); char *tp_doc = PyObject_MALLOC(len);
if (tp_doc == NULL) if (tp_doc == NULL)
goto fail; goto fail;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment