commit | 9f27dd3e16e2832fa8c375bfc4493de75b39d53f | [log] [tgz] |
---|---|---|
author | Pablo Galindo <Pablogsal@gmail.com> | Fri Apr 24 01:13:33 2020 +0100 |
committer | GitHub <noreply@github.com> | Fri Apr 24 01:13:33 2020 +0100 |
tree | 54162dfda3697de15e06d3e8ded4b90bb82d0c26 | |
parent | 50f28dea32c45e1a49b3bd07c874b4fa837a5e88 [diff] [blame] |
Use Py_ssize_t instead of ssize_t (GH-19685)
diff --git a/Parser/pegen/pegen.c b/Parser/pegen/pegen.c index a51c8aa..c8f5c95 100644 --- a/Parser/pegen/pegen.c +++ b/Parser/pegen/pegen.c
@@ -1161,7 +1161,7 @@ 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) {