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

Commit 5fa22fc

Browse files
Added the const qualifier for char* argument of Py_EnterRecursiveCall().
1 parent 73c95f1 commit 5fa22fc

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
@@ -77,7 +77,7 @@ PyAPI_FUNC(int) Py_GetRecursionLimit(void);
7777
do{ if(_Py_MakeEndRecCheck(PyThreadState_GET()->recursion_depth)) \
7878
PyThreadState_GET()->overflowed = 0; \
7979
} while(0)
80-
PyAPI_FUNC(int) _Py_CheckRecursiveCall(char *where);
80+
PyAPI_FUNC(int) _Py_CheckRecursiveCall(const char *where);
8181
PyAPI_DATA(int) _Py_CheckRecursionLimit;
8282

8383
#ifdef USE_STACKCHECK

Python/ceval.c

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)