summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2016-03-03 16:16:27 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2016-03-03 16:16:27 (GMT)
commit79f657c6e74004d9da5b3dc1b3fd17089e4a75be (patch)
treed684bd699596399cea61c179c51a0daf00e087a8 /Python/errors.c
parentbb569362f4b11b6f90c6b0b60eeeb6dd5b055c97 (diff)
downloadcpython-79f657c6e74004d9da5b3dc1b3fd17089e4a75be.zip
cpython-79f657c6e74004d9da5b3dc1b3fd17089e4a75be.tar.gz
cpython-79f657c6e74004d9da5b3dc1b3fd17089e4a75be.tar.bz2
Issue #26476: Fixed compilation error when use PyErr_BadInternalCall() in C++.
Patch by Jeroen Demeyer.
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/errors.c b/Python/errors.c
index e7c221c..d823e13 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -532,7 +532,7 @@ PyObject *PyErr_SetFromWindowsErrWithUnicodeFilename(
#endif /* MS_WINDOWS */
void
-_PyErr_BadInternalCall(char *filename, int lineno)
+_PyErr_BadInternalCall(const char *filename, int lineno)
{
PyErr_Format(PyExc_SystemError,
"%s:%d: bad argument to internal function",