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

Skip to content

Commit 682d94c

Browse files
committed
Use size_t, not ssize_t (issue #14801).
1 parent 87960da commit 682d94c

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
@@ -2379,7 +2379,7 @@ PyType_FromSpec(PyType_Spec *spec)
23792379
/* need to make a copy of the docstring slot, which usually
23802380
points to a static string literal */
23812381
if (slot->slot == Py_tp_doc) {
2382-
ssize_t len = strlen(slot->pfunc)+1;
2382+
size_t len = strlen(slot->pfunc)+1;
23832383
char *tp_doc = PyObject_MALLOC(len);
23842384
if (tp_doc == NULL)
23852385
goto fail;

0 commit comments

Comments
 (0)