summaryrefslogtreecommitdiffstats
path: root/Parser/pegen.h
diff options
context:
space:
mode:
authorPablo Galindo <Pablogsal@gmail.com>2021-03-22 17:28:11 (GMT)
committerGitHub <noreply@github.com>2021-03-22 17:28:11 (GMT)
commit96eeff516204b7cc751103fa33dcc665e387846e (patch)
tree7eb595bad5b876e53ccf91f041fe4d5512742fd0 /Parser/pegen.h
parent123ff266cda9ad279106f20dca06ba114f6a9b8a (diff)
downloadcpython-96eeff516204b7cc751103fa33dcc665e387846e.zip
cpython-96eeff516204b7cc751103fa33dcc665e387846e.tar.gz
cpython-96eeff516204b7cc751103fa33dcc665e387846e.tar.bz2
bpo-43555: Report the column offset for invalid line continuation character (GH-24939)
Diffstat (limited to 'Parser/pegen.h')
-rw-r--r--Parser/pegen.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/Parser/pegen.h b/Parser/pegen.h
index 3765b24..8720e60 100644
--- a/Parser/pegen.h
+++ b/Parser/pegen.h
@@ -136,8 +136,9 @@ void *_PyPegen_raise_error_known_location(Parser *p, PyObject *errtype,
void *_PyPegen_dummy_name(Parser *p, ...);
Py_LOCAL_INLINE(void *)
-RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype, int lineno,
- int col_offset, const char *errmsg, ...)
+RAISE_ERROR_KNOWN_LOCATION(Parser *p, PyObject *errtype,
+ Py_ssize_t lineno, Py_ssize_t col_offset,
+ const char *errmsg, ...)
{
va_list va;
va_start(va, errmsg);