]> granicus.if.org Git - python/commitdiff
Use size_t, not ssize_t (issue #14801).
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 14 May 2012 12:43:03 +0000 (14:43 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 14 May 2012 12:43:03 +0000 (14:43 +0200)
Objects/typeobject.c

index 9430d3959c62d2e0c1704b6a508d517388545038..d1f5b1fe9a6adfb5c642d8f8e815416d8fed29dd 100644 (file)
@@ -2379,7 +2379,7 @@ PyType_FromSpec(PyType_Spec *spec)
         /* 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;