diff Objects/typeobject.c @ 76924:2bbf3ba30435 3.2

Use size_t, not ssize_t (issue #14801).
author Antoine Pitrou <solipsis@pitrou.net>
date Mon, 14 May 2012 14:43:03 +0200
parents d937b527b76e
children 6b037a9eaba7
line wrap: on
line diff
--- 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;