Commit 5d1e3438 authored by Victor Stinner's avatar Victor Stinner

Mark _Py_char2wchar() input argument as constant

parent d449a8ad
......@@ -6,7 +6,7 @@ extern "C" {
#endif
PyAPI_FUNC(wchar_t *) _Py_char2wchar(
char *arg);
const char *arg);
PyAPI_FUNC(char*) _Py_wchar2char(
const wchar_t *text);
......
......@@ -17,7 +17,7 @@
PyMem_Free() to free the memory), or NULL on error (conversion error or
memory error). */
wchar_t*
_Py_char2wchar(char* arg)
_Py_char2wchar(const char* arg)
{
wchar_t *res;
#ifdef HAVE_BROKEN_MBSTOWCS
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment