cpython: 2bbf3ba30435 (original) (raw)
Mercurial > cpython
changeset 76924:2bbf3ba30435 3.2
Use size_t, not ssize_t (issue #14801). [#14801]
Antoine Pitrou solipsis@pitrou.net | |
---|---|
date | Mon, 14 May 2012 14:43:03 +0200 |
parents | db97a8248863 |
children | 6b037a9eaba7 |
files | Objects/typeobject.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-)[+] [-] Objects/typeobject.c 2 |
line wrap: on
line diff
--- 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;[](#l1.7)
size_t len = strlen(slot->pfunc)+1;[](#l1.8) char *tp_doc = PyObject_MALLOC(len);[](#l1.9) if (tp_doc == NULL)[](#l1.10) goto fail;[](#l1.11)