]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Use Py_ssize_t instead of ssize_t (GH-19685)
authorPablo Galindo <Pablogsal@gmail.com>
Fri, 24 Apr 2020 00:13:33 +0000 (01:13 +0100)
committerGitHub <noreply@github.com>
Fri, 24 Apr 2020 00:13:33 +0000 (01:13 +0100)
Parser/pegen/pegen.c

index a51c8aae8b4c512564779fde6899c940c538d181..c8f5c95b473e29b4c42b89845f2b2fd22dec329b 100644 (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) {