From 682d94c11af85e60aaa7a38db699db9635229dd3 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 14 May 2012 14:43:03 +0200 Subject: [PATCH] Use size_t, not ssize_t (issue #14801). --- Objects/typeobject.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 9430d3959c6..d1f5b1fe9a6 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;