Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1b634c2

Browse files
committed
Use size_t, not ssize_t (issue #14801).
2 parents dab46f7 + a1433fe commit 1b634c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/typeobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2406,7 +2406,7 @@ PyType_FromSpec(PyType_Spec *spec)
24062406
/* need to make a copy of the docstring slot, which usually
24072407
points to a static string literal */
24082408
if (slot->slot == Py_tp_doc) {
2409-
ssize_t len = strlen(slot->pfunc)+1;
2409+
size_t len = strlen(slot->pfunc)+1;
24102410
char *tp_doc = PyObject_MALLOC(len);
24112411
if (tp_doc == NULL)
24122412
goto fail;

0 commit comments

Comments
 (0)