From: Pablo Galindo Date: Fri, 24 Apr 2020 00:13:33 +0000 (+0100) Subject: Use Py_ssize_t instead of ssize_t (GH-19685) X-Git-Tag: v3.9.0a6~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f27dd3e16e2832fa8c375bfc4493de75b39d53f;p=thirdparty%2FPython%2Fcpython.git Use Py_ssize_t instead of ssize_t (GH-19685) --- diff --git a/Parser/pegen/pegen.c b/Parser/pegen/pegen.c index a51c8aae8b4c..c8f5c95b473e 100644 --- a/Parser/pegen/pegen.c +++ b/Parser/pegen/pegen.c @@ -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) {