diff options
author | Christian Heimes <christian@python.org> | 2022-08-11 19:41:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 19:41:35 (GMT) |
commit | 2a6b67f1c516d0e693abd0dc13c7c7799815fd18 (patch) | |
tree | 006784b57fede751bfdb0972114fca676da0b73d /Parser | |
parent | 9c04e25308ef2bfa44f2cca0b56bfe46be1f6b1b (diff) | |
download | cpython-2a6b67f1c516d0e693abd0dc13c7c7799815fd18.zip cpython-2a6b67f1c516d0e693abd0dc13c7c7799815fd18.tar.gz cpython-2a6b67f1c516d0e693abd0dc13c7c7799815fd18.tar.bz2 |
[3.10] gh-95876: Fix format string in pegen error location code (GH-95877 (GH-95901)
(cherry picked from commit b4c857d0fd74abb1ede6fe083c4fa3ca728b2b83)
Co-authored-by: Christian Heimes <christian@python.org>
Diffstat (limited to 'Parser')
-rw-r--r-- | Parser/pegen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/pegen.c b/Parser/pegen.c index 016f070..acad955 100644 --- a/Parser/pegen.c +++ b/Parser/pegen.c @@ -547,7 +547,7 @@ _PyPegen_raise_error_known_location(Parser *p, PyObject *errtype, byte_offset_to_character_offset(error_line, end_col_offset) : end_col_number; } - tmp = Py_BuildValue("(OiiNii)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_col_number); + tmp = Py_BuildValue("(OnnNnn)", p->tok->filename, lineno, col_number, error_line, end_lineno, end_col_number); if (!tmp) { goto error; } |