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.
2 parents dab46f7 + a1433fe commit 1b634c2Copy full SHA for 1b634c2
1 file changed
Objects/typeobject.c
@@ -2406,7 +2406,7 @@ PyType_FromSpec(PyType_Spec *spec)
2406
/* need to make a copy of the docstring slot, which usually
2407
points to a static string literal */
2408
if (slot->slot == Py_tp_doc) {
2409
- ssize_t len = strlen(slot->pfunc)+1;
+ size_t len = strlen(slot->pfunc)+1;
2410
char *tp_doc = PyObject_MALLOC(len);
2411
if (tp_doc == NULL)
2412
goto fail;
0 commit comments