[Python-checkins] cpython (merge 3.2 -> default): Use size_t, not ssize_t (issue #14801).
antoine.pitrou
python-checkins at python.org
Mon May 14 14:51:36 CEST 2012
http://hg.python.org/cpython/rev/64b695a6cc3d
changeset: 76926:64b695a6cc3d
parent: 76922:e33181ff15d0
parent: 76925:6b037a9eaba7
user: Antoine Pitrou <solipsis at pitrou.net>
date: Mon May 14 14:44:37 2012 +0200
summary:
Use size_t, not ssize_t (issue #14801).
files:
Objects/typeobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -2406,7 +2406,7 @@
/* 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;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list