Use Py_ssize_t instead of ssize_t (GH-19685)

This commit is contained in:
Pablo Galindo 2020-04-24 01:13:33 +01:00 committed by GitHub
parent 50f28dea32
commit 9f27dd3e16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1161,7 +1161,7 @@ _PyPegen_join_names_with_dot(Parser *p, expr_ty first_name, expr_ty second_name)
if (!second_str) {
return NULL;
}
ssize_t len = strlen(first_str) + strlen(second_str) + 1; // +1 for the dot
Py_ssize_t len = strlen(first_str) + strlen(second_str) + 1; // +1 for the dot
PyObject *str = PyBytes_FromStringAndSize(NULL, len);
if (!str) {