Added the const qualifier for char* argument of Py_EnterRecursiveCall(). · pythoncapi/cpython@289dd19 · GitHub
Skip to content

Commit 289dd19

Browse files
Added the const qualifier for char* argument of Py_EnterRecursiveCall().
2 parents ccfdf09 + 5fa22fc commit 289dd19

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion

Include/ceval.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
7979
do{ if(_Py_MakeEndRecCheck(PyThreadState_GET()->recursion_depth)) \
8080
PyThreadState_GET()->overflowed = 0; \
8181
} while(0)
82-
PyAPI_FUNC(int) _Py_CheckRecursiveCall(char *where);
82+
PyAPI_FUNC(int) _Py_CheckRecursiveCall(const char *where);
8383
PyAPI_DATA(int) _Py_CheckRecursionLimit;
8484

8585
#ifdef USE_STACKCHECK

Python/ceval.c

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)