Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9f27dd3

Browse files
authored
Use Py_ssize_t instead of ssize_t (GH-19685)
1 parent 50f28de commit 9f27dd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Parser/pegen/pegen.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1161,7 +1161,7 @@ _PyPegen_join_names_with_dot(Parser *p, expr_ty first_name, expr_ty second_name)
11611161
if (!second_str) {
11621162
return NULL;
11631163
}
1164-
ssize_t len = strlen(first_str) + strlen(second_str) + 1; // +1 for the dot
1164+
Py_ssize_t len = strlen(first_str) + strlen(second_str) + 1; // +1 for the dot
11651165

11661166
PyObject *str = PyBytes_FromStringAndSize(NULL, len);
11671167
if (!str) {

0 commit comments

Comments
 (0)