Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 9743516

Browse files
committed
Closes #22565: fix argument types of PyErr_WarnEx.
1 parent c6ad576 commit 9743516

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Doc/c-api/exceptions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ in various ways. There is a separate error indicator for each thread.
346346
use.
347347
348348
349-
.. c:function:: int PyErr_WarnEx(PyObject *category, char *message, int stack_level)
349+
.. c:function:: int PyErr_WarnEx(PyObject *category, const char *message, Py_ssize_t stack_level)
350350
351351
Issue a warning message. The *category* argument is a warning category (see
352352
below) or *NULL*; the *message* argument is an UTF-8 encoded string. *stack_level* is a

0 commit comments

Comments
 (0)