Commits

Anonymous committed 2bbf3ba

Use size_t, not ssize_t (issue #14801).

Comments (0)

Files changed (1)

Objects/typeobject.c

         /* 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;