summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2012-05-14 12:43:03 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2012-05-14 12:43:03 (GMT)
commit682d94c11af85e60aaa7a38db699db9635229dd3 (patch)
treecdfb2893607f1542fedf4a0772513513a7ff2264 /Objects
parent87960da3e3a71122acd14cd92d5313e87021c7d4 (diff)
downloadcpython-682d94c11af85e60aaa7a38db699db9635229dd3.zip
cpython-682d94c11af85e60aaa7a38db699db9635229dd3.tar.gz
cpython-682d94c11af85e60aaa7a38db699db9635229dd3.tar.bz2
Use size_t, not ssize_t (issue #14801).
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index 9430d39..d1f5b1f 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;