changeset: 76924:2bbf3ba30435 branch: 3.2 parent: 76921:db97a8248863 user: Antoine Pitrou date: Mon May 14 14:43:03 2012 +0200 files: Objects/typeobject.c description: Use size_t, not ssize_t (issue #14801). diff -r db97a8248863 -r 2bbf3ba30435 Objects/typeobject.c --- a/Objects/typeobject.c Mon May 14 14:13:48 2012 +0200 +++ b/Objects/typeobject.c Mon May 14 14:43:03 2012 +0200 @@ -2379,7 +2379,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;

AltStyle によって変換されたページ (->オリジナル) /