diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-14 12:44:37 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2012-05-14 12:44:37 (GMT) |
commit | 1b634c266c0a447b2a4b52a279f6359f60abb1a1 (patch) | |
tree | 4f4048269f8293818ef1c1a2bac05867de5d105b | |
parent | dab46f72501750dba0c36e26d8b6679d0d9d5f54 (diff) | |
parent | a1433fed8eed0f8a847a6f56d63adf70c60602cf (diff) | |
download | cpython-1b634c266c0a447b2a4b52a279f6359f60abb1a1.zip cpython-1b634c266c0a447b2a4b52a279f6359f60abb1a1.tar.gz cpython-1b634c266c0a447b2a4b52a279f6359f60abb1a1.tar.bz2 |
Use size_t, not ssize_t (issue #14801).
-rw-r--r-- | Objects/typeobject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 309191e..cb4b99b 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -2406,7 +2406,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; |