commit | 79f657c6e74004d9da5b3dc1b3fd17089e4a75be | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Thu Mar 03 18:16:27 2016 +0200 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Thu Mar 03 18:16:27 2016 +0200 |
tree | d684bd699596399cea61c179c51a0daf00e087a8 | |
parent | bb569362f4b11b6f90c6b0b60eeeb6dd5b055c97 [diff] [blame] |
Issue #26476: Fixed compilation error when use PyErr_BadInternalCall() in C++. Patch by Jeroen Demeyer.
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 @@ #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",