Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 87960da commit 682d94cCopy full SHA for 682d94c
1 file changed
Objects/typeobject.c
@@ -2379,7 +2379,7 @@ PyType_FromSpec(PyType_Spec *spec)
2379
/* need to make a copy of the docstring slot, which usually
2380
points to a static string literal */
2381
if (slot->slot == Py_tp_doc) {
2382
- ssize_t len = strlen(slot->pfunc)+1;
+ size_t len = strlen(slot->pfunc)+1;
2383
char *tp_doc = PyObject_MALLOC(len);
2384
if (tp_doc == NULL)
2385
goto fail;
0 commit comments