diff options
author | Pablo Galindo <Pablogsal@gmail.com> | 2020-04-24 01:13:33 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-24 01:13:33 +0100 |
commit | 9f27dd3e16e2832fa8c375bfc4493de75b39d53f (patch) | |
tree | 54162dfda3697de15e06d3e8ded4b90bb82d0c26 | |
parent | 50f28dea32c45e1a49b3bd07c874b4fa837a5e88 (diff) | |
download | cpython-git-9f27dd3e16e2832fa8c375bfc4493de75b39d53f.tar.gz |
Use Py_ssize_t instead of ssize_t (GH-19685)
-rw-r--r-- | Parser/pegen/pegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen/pegen.c b/Parser/pegen/pegen.c index a51c8aae8b..c8f5c95b47 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) { |