changeset: 76926:64b695a6cc3d parent: 76922:e33181ff15d0 parent: 76925:6b037a9eaba7 user: Antoine Pitrou date: Mon May 14 14:44:37 2012 +0200 files: Objects/typeobject.c description: Use size_t, not ssize_t (issue #14801). diff -r e33181ff15d0 -r 64b695a6cc3d Objects/typeobject.c --- a/Objects/typeobject.c Mon May 14 14:17:20 2012 +0200 +++ b/Objects/typeobject.c Mon May 14 14:44:37 2012 +0200 @@ -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;

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