From: Antoine Pitrou Date: Mon, 14 May 2012 12:43:03 +0000 (+0200) Subject: Use size_t, not ssize_t (issue #14801). X-Git-Tag: v3.3.0a4~173^2~1 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=682d94c11af85e60aaa7a38db699db9635229dd3;p=thirdparty%2FPython%2Fcpython.git Use size_t, not ssize_t (issue #14801). --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 9430d3959c62..d1f5b1fe9a6a 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2379,7 +2379,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;